Skip to content

Commit

Permalink
Update gen_readme.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rickzx authored Jun 21, 2024
1 parent d6f44d3 commit 9ff7b16
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/gen_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
- name: Commit and push changes
run: |
git add README.md
git commit -m "Update README.md"
git push
if [[ -n $(git status -s) ]]; then
git add README.md
git commit -m "Update README.md"
git push
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9ff7b16

Please sign in to comment.