Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin authored Nov 21, 2024
1 parent e32df6b commit ecff91d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,19 @@ jobs:
run: |
python generate_readme.py
- name: Commit changes
- name: Commit changes if any
run: |
# Configure git user info
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
# Add and commit the changes to README.md
git config --local user.name "github-actions"
git config --local user.email "[email protected]"
git add README.md
git commit -m "Update README with new data"
if git diff-index --cached --quiet HEAD; then
echo "No changes to commit."
else
git commit -m "Update README with new data"
fi
- name: Push changes to remote repository
if: success() # Ensures the step only runs if previous steps succeeded
run: |
git push https://github-actions[bot]:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}

0 comments on commit ecff91d

Please sign in to comment.