Skip to content

Commit

Permalink
Fix condition of jobs with build needd
Browse files Browse the repository at this point in the history
Signed-off-by: John Niang <[email protected]>
  • Loading branch information
JohnNiang committed Jan 10, 2024
1 parent 75c4077 commit aadf593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/halo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:

github-release:
runs-on: ubuntu-latest
if: github.event_name == 'release'
if: always() && needs.build.result == 'success' && github.event_name == 'release'
needs: build
steps:
- uses: actions/checkout@v3
Expand All @@ -81,7 +81,7 @@ jobs:
run: gh release upload ${{ github.event.release.tag_name }} application/build/libs/*

docker-build-and-push:
if: github.event_name == 'push' || github.event_name == 'release'
if: always() && needs.build.result == 'success' && (github.event_name == 'push' || github.event_name == 'release')
runs-on: ubuntu-latest
needs: build
steps:
Expand All @@ -102,7 +102,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x

e2e-test:
if: github.event_name == 'pull_request' || github.event_name == 'push'
if: always() && needs.build.result == 'success' && (github.event_name == 'pull_request' || github.event_name == 'push')
runs-on: ubuntu-latest
needs: build
steps:
Expand Down

0 comments on commit aadf593

Please sign in to comment.