From 833b84170b16c035ae2181648d2e0790c9ab6d6e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 14:16:40 +0000 Subject: [PATCH 1/3] Initial plan From f335fb4a1bbd5ff86e5eb77828963a2d5d4d45ef Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 14:18:41 +0000 Subject: [PATCH 2/3] ci: add workflow to sync updates.json commit on main pushes Co-authored-by: Itz-fork <77770753+Itz-fork@users.noreply.github.com> --- .github/workflows/update-updates-json.yml | 49 +++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/update-updates-json.yml diff --git a/.github/workflows/update-updates-json.yml b/.github/workflows/update-updates-json.yml new file mode 100644 index 00000000..68e1e84f --- /dev/null +++ b/.github/workflows/update-updates-json.yml @@ -0,0 +1,49 @@ +name: Update updates.json commit + +"on": + push: + branches: + - main + +permissions: + contents: write + +jobs: + update-commit: + if: github.actor != 'github-actions[bot]' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Update commit field in updates.json + env: + LATEST_COMMIT: ${{ github.sha }} + run: | + python3 - <<'PY' + import json + import os + + path = "updates.json" + with open(path, "r", encoding="utf-8") as f: + data = json.load(f) + + data["commit"] = os.environ["LATEST_COMMIT"] + + with open(path, "w", encoding="utf-8") as f: + json.dump(data, f, indent=2) + f.write("\n") + PY + + - name: Commit and push changes + run: | + if git diff --quiet -- updates.json; then + echo "No changes to commit" + exit 0 + fi + + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add updates.json + git commit -m "chore: update updates.json commit to ${GITHUB_SHA}" + git push From fa9f82edfae91f7137cc1a0ec0344eac7e9d9308 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 14:21:56 +0000 Subject: [PATCH 3/3] ci: refine updates.json workflow commit handling Co-authored-by: Itz-fork <77770753+Itz-fork@users.noreply.github.com> --- .github/workflows/update-updates-json.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-updates-json.yml b/.github/workflows/update-updates-json.yml index 68e1e84f..bb9d6c83 100644 --- a/.github/workflows/update-updates-json.yml +++ b/.github/workflows/update-updates-json.yml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 2 - name: Update commit field in updates.json env: @@ -36,6 +38,8 @@ jobs: PY - name: Commit and push changes + env: + LATEST_COMMIT: ${{ github.sha }} run: | if git diff --quiet -- updates.json; then echo "No changes to commit" @@ -45,5 +49,5 @@ jobs: git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add updates.json - git commit -m "chore: update updates.json commit to ${GITHUB_SHA}" + git commit -m "chore: update updates.json commit to ${LATEST_COMMIT}" git push