Clean up committing in the workflows.

This commit is contained in:
supahgreg 2025-10-16 21:35:11 +00:00
parent 6569f1fd30
commit 328f6db3da
No known key found for this signature in database
2 changed files with 10 additions and 6 deletions

View File

@ -70,10 +70,12 @@ jobs:
if git diff --staged --quiet; then
echo "No changes to commit"
else
# Set up git authentication for GitHub-signed commits
gh auth setup-git
# Configure git for GitHub Actions bot
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "Update version info [automated]"
# Push using GitHub CLI with GITHUB_TOKEN
gh auth setup-git
git push origin gh-pages || { echo "Failed to push to gh-pages"; exit 1; }
fi

View File

@ -307,10 +307,12 @@ jobs:
if git diff --staged --quiet; then
echo "No changes to commit"
else
# Set up git authentication for GitHub-signed commits
gh auth setup-git
# Configure git for GitHub Actions bot
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "Update plugins list [automated]"
# Push using GitHub CLI with GITHUB_TOKEN
gh auth setup-git
git push origin gh-pages || { echo "Failed to push to gh-pages"; exit 1; }
fi