From 0c44a4072456d2ed4c232d04b24afa8ea92cf167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Tue, 12 May 2026 12:15:44 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci(schemastore):=20sync=20fork?= =?UTF-8?q?=20before=20pushing=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 4.54.0 SchemaStore update run failed because force-pushing the update-tox-schema branch dragged in upstream commits that modified .github/workflows/auto-update.yml, and SCHEMASTORE_TOKEN doesn't carry the workflow scope. Sync the fork's master via the GitHub Sync API before branching, then base the working branch off origin/master. The push then carries only the tox.json bump, so the workflow-scope guard no longer trips. --- .github/workflows/update-schemastore.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-schemastore.yaml b/.github/workflows/update-schemastore.yaml index 6fa6748e5..a25a5264b 100644 --- a/.github/workflows/update-schemastore.yaml +++ b/.github/workflows/update-schemastore.yaml @@ -19,10 +19,12 @@ jobs: persist-credentials: false - name: Fork and clone SchemaStore run: gh repo fork SchemaStore/schemastore --clone -- /tmp/schemastore - - name: Create or reset branch from upstream + - name: Sync fork's master with upstream + run: gh repo sync "$(gh api user --jq .login)/schemastore" -b master + - name: Create or reset branch from synced fork run: | - git fetch upstream master - git switch -C "$BRANCH" upstream/master + git fetch origin master + git switch -C "$BRANCH" origin/master working-directory: /tmp/schemastore - name: Update schema and check for changes id: diff