Skip to content

Commit

Permalink
Fixing the version bump conditional statements (#4024)
Browse files Browse the repository at this point in the history
  • Loading branch information
leahwicz authored Oct 11, 2021
1 parent 6e2df00 commit 1a5bc83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
pip install --upgrade pip
- name: Create PR branch
if: ${{ steps.variables.outputs.IS_DRY_RUN }}
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'true' }}
run: |
git checkout -b bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_$GITHUB_RUN_ID
git push origin bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_$GITHUB_RUN_ID
Expand All @@ -82,15 +82,15 @@ jobs:
- name: Commit version bump directly
uses: EndBug/add-and-commit@v7
if: ${{ !steps.variables.outputs.IS_DRY_RUN }}
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'false' }}
with:
author_name: 'Github Build Bot'
author_email: '[email protected]'
message: 'Bumping version to ${{steps.variables.outputs.VERSION_NUMBER}}'

- name: Commit version bump to branch
uses: EndBug/add-and-commit@v7
if: ${{ steps.variables.outputs.IS_DRY_RUN }}
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'true' }}
with:
author_name: 'Github Build Bot'
author_email: '[email protected]'
Expand All @@ -100,7 +100,7 @@ jobs:

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
if: ${{ steps.variables.outputs.IS_DRY_RUN }}
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'true' }}
with:
author: 'Github Build Bot <[email protected]>'
draft: true
Expand Down

0 comments on commit 1a5bc83

Please sign in to comment.