Skip to content

Commit

Permalink
fix: Exit with 0 after successful build
Browse files Browse the repository at this point in the history
  • Loading branch information
jamilraichouni committed Oct 23, 2024
1 parent 4b41816 commit aa0c16f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ jobs:
--java-execution-environment=JavaSE-17 \
$(find . -type f -name "Main.java") \
/tmp/capella_${{ matrix.capella.version }}
cat .classpath
- name: Build workspace
run: |-
cd ${{ matrix.addon }}
Expand All @@ -124,17 +123,15 @@ jobs:
cd ${{ matrix.addon }}
python ../capella_addons/__main__.py -v \
package \
/usr/lib/jvm/${{ matrix.capella.jdk.name }} \
/usr/lib/jvm/jdk-17.0.6+10 \
/tmp/jdtls
/usr/lib/jvm/jdk-17.0.6+10
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ matrix.addon }}.${{ github.ref }}
release_name: ${{ matrix.addon }} ${{ github.ref }}
draft: false
prerelease: false
- name: Publish release
Expand Down
1 change: 1 addition & 0 deletions capella_addons/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ def build_workspace(
status = response.get("result", BuildWorkspaceStatus.FAILED.value)
if status == BuildWorkspaceStatus.SUCCEED.value:
click.echo("Build of workspace succeeded.")
sys.exit(0)
elif status == BuildWorkspaceStatus.CANCELLED.value:
click.echo("Build of workspace cancelled.")
elif status == BuildWorkspaceStatus.WITH_ERROR.value:
Expand Down

0 comments on commit aa0c16f

Please sign in to comment.