Skip to content

Commit

Permalink
Fix: detect stage failure
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangFuSL committed Sep 17, 2023
1 parent 45c50a6 commit de38168
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
- name: Detect changed files
id: detect
run:
if git diff HEAD^ HEAD --name-only | grep '.tex$'; then \
echo "changed=true" >> $GITHUB_OUTPUT; \
else \
echo "changed=false" >> $GITHUB_OUTPUT; \
if [[ -n $(git diff HEAD^ HEAD --name-only | grep '.tex$') ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi

latex:
Expand Down

0 comments on commit de38168

Please sign in to comment.