Skip to content

Commit

Permalink
move git commit and push after checking for diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed May 7, 2024
1 parent a93a0dc commit 9f111b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
git config user.name 'GitHub Action'
git config user.email 'action@github.com'
git add .
git commit -m "Aotumated: Update starship documentation from starship repo"
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "Aotumated: Update starship documentation from starship repo"
git push
fi

0 comments on commit 9f111b9

Please sign in to comment.