Skip to content

Commit

Permalink
Workflow: Improves README updating process.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Dec 7, 2024
1 parent 8335fd4 commit 1805a22
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ jobs:
cd .github
go run .
- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '27856297+dependabot-preview[bot]@users.noreply.github.com'
- name: Commit and Push Changes
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
COMMIT_MSG: |
[README] Generated readmes.
run: |
git config user.email "actions@github"
git config user.name "Github Actions"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git add .
git diff --quiet && git diff --staged --quiet || \
(git commit -m "Update wallpapers READMEs [skip ci]" && git push)
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})

0 comments on commit 1805a22

Please sign in to comment.