Skip to content

Commit

Permalink
chore: make prerelease behave differently with input vars (#504)
Browse files Browse the repository at this point in the history
env are not available in job context, so must use input instead
  • Loading branch information
TeeeJay authored May 31, 2024
1 parent f234f8e commit ca27794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ jobs:
uses: equinor/ecalc/.github/workflows/publish.yml@main
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}
if: ${{ needs.release-please.outputs.release_created && env.VERSIONING_STRATEGY != 'prerelease' }}
if: ${{ needs.release-please.outputs.release_created && inputs.versioning_strategy != 'prerelease' }}

create-jira-release:
needs: release-please
if: ${{ needs.release-please.outputs.release_created && env.VERSIONING_STRATEGY != 'prerelease' }}
if: ${{ needs.release-please.outputs.release_created && inputs.versioning_strategy != 'prerelease' }}
secrets:
jira_release_webhook: ${{ secrets.JIRA_RELEASE_WEBHOOK }}
uses: equinor/ecalc/.github/workflows/create-jira-release.yml@main
Expand Down

0 comments on commit ca27794

Please sign in to comment.