Skip to content

Commit

Permalink
fix: check if release job
Browse files Browse the repository at this point in the history
  • Loading branch information
MattMod authored Jul 1, 2022
2 parents 496ae8c + 8f5eff0 commit dde9dde
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,10 @@ jobs:
Deploy:
needs: [CheckInputModules, DryRunRelease, buildFE, buildBE]
if: |
always() &&
if: ${{ always() &&
needs.DryRunRelease.result == 'success' &&
(needs.buildFE.result == 'success' || needs.buildFE.result == 'skipped') &&
(needs.buildBE.result == 'success' || needs.buildBE.result == 'skipped')
(needs.buildBE.result == 'success' || needs.buildBE.result == 'skipped') }}
name: Deploy
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -659,8 +658,8 @@ jobs:
git push
Release:
if: ${{ github.event.inputs.version == '' }}
needs: [RepoUpdate]
if: ${{ github.event.inputs.version == '' && always() && needs.RepoUpdate.result == 'success' }}
name: Release
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment }}
Expand Down

0 comments on commit dde9dde

Please sign in to comment.