Skip to content

Commit

Permalink
CI: skip nothing to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Jul 7, 2024
1 parent 7b89c5a commit f6ec740
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/updateInfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ jobs:
run: |
python opml_generator.py
- name: Commit files
id: commit
run: |
echo "::set-output name=new::$(git status --porcelain)"
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "update README and feed.opml after adding blog(s)"
git commit -m "update README and feed.opml after adding blog(s)" || echo "nothing to commit"
- name: Push changes
if: steps.commit.new != ''
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f6ec740

Please sign in to comment.