From 0fd62b029ff8c62ad6786f0d524621ca5732da34 Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Tue, 24 Nov 2026 22:14:35 +0530 Subject: [PATCH 1/2] fix(ci): point cross-sync pipeline to sync-to-devshelf.ts --- .github/workflows/cross-sync-devshelf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cross-sync-devshelf.yml b/.github/workflows/cross-sync-devshelf.yml index 1cf95e6..a15f647 100644 --- a/.github/workflows/cross-sync-devshelf.yml +++ b/.github/workflows/cross-sync-devshelf.yml @@ -25,7 +25,7 @@ jobs: run: npm ci - name: Run Cross-Sync Pipeline - run: npx tsx scripts/cross-sync-devshelf.ts + run: npx tsx scripts/sync-to-devshelf.ts - name: Build Site & Badges run: npm run build:site && npm run build:seo From 2b36636c66262046635acf1b75687840f894b831 Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Tue, 24 Nov 2026 22:19:38 +0530 Subject: [PATCH 2/2] fix(ci): add PR fallback when pushing to protected branch --- .github/workflows/cross-sync-devshelf.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cross-sync-devshelf.yml b/.github/workflows/cross-sync-devshelf.yml index a15f647..1e00306 100644 --- a/.github/workflows/cross-sync-devshelf.yml +++ b/.github/workflows/cross-sync-devshelf.yml @@ -12,6 +12,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + pull-requests: write steps: - name: Checkout Repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -34,6 +35,8 @@ jobs: run: npm test - name: Commit and Push Updates + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" @@ -42,5 +45,10 @@ jobs: echo "No cross-sync changes needed." else git commit -m "chore(sync): automated cross-sync with DevShelf MCP catalog" - git push origin main + git push origin main || ( + BRANCH="sync/devshelf-$(date +%Y%m%d%H%M)" + git checkout -b "$BRANCH" + git push origin "$BRANCH" --force + gh pr create --title "chore(sync): automated cross-sync with DevShelf MCP catalog" --body "Automated catalog sync with DevShelf." --head "$BRANCH" --base main + ) fi