mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
CI: Fix update-readme.yml
This commit is contained in:
parent
96f854717b
commit
1bfffb11fd
1 changed files with 2 additions and 1 deletions
3
.github/workflows/update-readme.yml
vendored
3
.github/workflows/update-readme.yml
vendored
|
|
@ -30,6 +30,7 @@ jobs:
|
||||||
git config user.email "actions@github"
|
git config user.email "actions@github"
|
||||||
git config user.name "Github Actions"
|
git config user.name "Github Actions"
|
||||||
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
||||||
./nvim.appimage --headless -c "luafile ./scripts/update-readme.lua" -c "q" || git add README.md
|
./nvim.appimage --headless -c "luafile ./scripts/update-readme.lua" -c "q" || echo "Needs update"
|
||||||
|
git add README.md
|
||||||
# Only commit and push if we have changes
|
# Only commit and push if we have changes
|
||||||
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})
|
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue