CI: Fix update-readme.yml

This commit is contained in:
Stephan Seitz
2020-11-21 20:11:42 +01:00
committed by Thomas Vigouroux
parent 96f854717b
commit 1bfffb11fd

View File

@@ -30,6 +30,7 @@ jobs:
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
./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
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})