Skip to content

Commit

Permalink
chore: move if statements into bash statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Sep 8, 2020
1 parent 5191a11 commit 175dbb6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,22 @@ runs:
shell: bash
- run: npm i
shell: bash
- run: npm test
- run: |
if [ "${{ inputs.skip_test }}" = "true" ]; then
echo "Skipping npm test"
else
npm test
fi
shell: bash
if: ${{ inputs.skip_test }}
- run: npm version ${{ inputs.newversion }}
shell: bash
- run: git push --follow-tags
- run: |
if [ "${{ inputs.push_version_commit }}" = "true" ]; then
git push --follow-tags
else
echo "Skipping git push --follow-tags"
fi
shell: bash
if: ${{ inputs.push_version_commit }}
- run: ${{ inputs.publish_cmd }}
shell: bash
env:
Expand Down

0 comments on commit 175dbb6

Please sign in to comment.