Skip to content

Commit

Permalink
fix: skip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal authored Jul 20, 2023
1 parent 4e64447 commit 1dae6e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@ jobs:
ref_branch: 'main'
version_args: 'patch'
node_version: ${{ env.NODE_VERSION }}
uses: ./

- name: Test bump action (without push)
with:
user_name: 'drassil-git-bot'
user_email: '[email protected]'
ref_branch: 'main'
version_args: 'patch'
node_version: ${{ env.NODE_VERSION }}
skip_push: true
uses: ./
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runs:
git add -A
git commit -m "chore: bump package version to $PACKAGE_VERSION and update changelog"
- name: Push
if: ${{ !inputs.skip_push }}
if: ${{ inputs.skip_push != "true" }}
shell: bash
run: |
git push --force https://${{ inputs.access_token || github.token }}@github.com/${{ github.event.pull_request.head.repo.full_name }}
Expand Down

0 comments on commit 1dae6e1

Please sign in to comment.