Skip to content

Commit

Permalink
chore: simplify publish job condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolasinski-splunk committed Sep 25, 2024
1 parent 1231ff5 commit de0409f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2376,12 +2376,8 @@ jobs:
exit 1
publish:
if: |
(!cancelled() && needs.pre-publish.result == 'success' && github.event_name == 'push' && github.event.inputs.custom-version == '') ||
(!cancelled() && needs.pre-publish.result == 'success' && github.event.inputs.custom-version != '' && needs.validate-custom-version.result == 'success')
# First condition for standard release process, second one for manual custom-version release process
if: ${{ !cancelled() && needs.pre-publish.result == 'success' && (github.event_name == 'push' || needs.validate-custom-version.result == 'success') }}
name: ${{ github.event.inputs.custom-version == '' && 'publish' || 'publish-custom-version' }}

needs:
- pre-publish
- validate-custom-version
Expand Down

0 comments on commit de0409f

Please sign in to comment.