Skip to content

Commit

Permalink
fix: just use an if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydee864 committed Aug 29, 2023
1 parent dd0fa89 commit 9e43082
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ jobs:
- name: Check for diff
id: diff
run: |
git status -s dist/ | grep "dist/" || echo "SHOULD_PUSH_BUILD=false" >> "$GITHUB_OUTPUT
echo "SHOULD_PUSH_BUILD=true" >> "$GITHUB_OUTPUT"
if [ git status -s dist/ | grep "dist/" ]; then
echo "SHOULD_PUSH_BUILD=true" >> "$GITHUB_OUTPUT"
else
echo "SHOULD_PUSH_BUILD=false" >> "$GITHUB_OUTPUT"
fi
- name: Push build
if: ${{ steps.diff.outputs.SHOULD_PUSH_BUILD == 'true' }}
run: |
Expand Down

0 comments on commit 9e43082

Please sign in to comment.