Skip to content

Commit

Permalink
Track tag files, before checking for the diff
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Jul 16, 2020
1 parent ef896fa commit c65eb4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ git config user.name "GHA CI"
git config user.email "gha@ci.invalid"

if [[ -n $TAG_NAME ]]; then
# track files, so that the following check works
git add --intent-to-add "$TAG_NAME"
if git diff --exit-code --quiet -- $TAG_NAME/; then
echo "No changes to the output on this push; exiting."
exit 0
Expand Down

0 comments on commit c65eb4d

Please sign in to comment.