From 328f6db3da0f36dc82f2e7da407a2bfbc8d49246 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Thu, 16 Oct 2025 21:35:11 +0000 Subject: [PATCH] Clean up committing in the workflows. --- .github/workflows/publish-version-json.yml | 8 +++++--- .github/workflows/update-plugins-json.yml | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-version-json.yml b/.github/workflows/publish-version-json.yml index 8f5aeaacf..519c1e001 100644 --- a/.github/workflows/publish-version-json.yml +++ b/.github/workflows/publish-version-json.yml @@ -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 diff --git a/.github/workflows/update-plugins-json.yml b/.github/workflows/update-plugins-json.yml index 9ef89b3c2..78043c988 100644 --- a/.github/workflows/update-plugins-json.yml +++ b/.github/workflows/update-plugins-json.yml @@ -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