Skip to content

Commit

Permalink
fix: Fix test workflow to not error if grep fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydee864 committed Aug 29, 2023
1 parent bba71f8 commit dd0fa89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Check for diff
id: diff
run: |
git status -s dist/ | grep "dist/"
echo "GIT_STATUS=$?" >> "$GITHUB_OUTPUT"
git status -s dist/ | grep "dist/" || echo "SHOULD_PUSH_BUILD=false" >> "$GITHUB_OUTPUT
echo "SHOULD_PUSH_BUILD=true" >> "$GITHUB_OUTPUT"
- name: Push build
if: ${{ steps.diff.outputs.GIT_STATUS == '0' }}
if: ${{ steps.diff.outputs.SHOULD_PUSH_BUILD == 'true' }}
run: |
git config user.name github-actions
git config user.email [email protected]
Expand Down

0 comments on commit dd0fa89

Please sign in to comment.