From 6823b97d52f4580ddbedc4663b63f6f18cff30a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damien=20Pl=C3=A9nard?= Date: Tue, 26 May 2026 22:46:04 +0200 Subject: [PATCH] chore: replace git-auto-commit-action with native git --- .github/workflows/update-json.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-json.yml b/.github/workflows/update-json.yml index fe0eba7..105228a 100644 --- a/.github/workflows/update-json.yml +++ b/.github/workflows/update-json.yml @@ -16,12 +16,17 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ref: ${{ github.head_ref || github.ref_name }} - persist-credentials: false - uses: cachix/install-nix-action@8aa03977d8d733052d78f4e008a241fd1dbf36b3 # v31.10.6 - name: Run update script run: ./update.sh - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0 - with: - commit_message: "chore: update versions.json" - file_pattern: "versions.json" + run: | + if ! git diff --quiet versions.json; then + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add versions.json + git commit -m "chore: update versions.json" + git push + else + echo "No changes to commit." + fi