Skip to content

Commit

Permalink
変更がない場合の分岐処理を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
nkte8 committed Apr 15, 2024
1 parent 243605c commit 6899092
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/format-at-astro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "[Github Action] Auto PR Format"
git push
if (git diff --shortstat | grep '[0-9]'); then
git add .
git commit -m "[Github Action] Auto PR Format"
git push
else
echo "no difference found."
fi

0 comments on commit 6899092

Please sign in to comment.