From 54adc65d9dd4ef213fee60a88c2e24a539acdb10 Mon Sep 17 00:00:00 2001 From: jinku Date: Sun, 5 Apr 2026 07:28:56 -0700 Subject: [PATCH] Fix marketplace release sync push auth --- .github/workflows/release-sync.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-sync.yml b/.github/workflows/release-sync.yml index 71e43a0..24e8973 100644 --- a/.github/workflows/release-sync.yml +++ b/.github/workflows/release-sync.yml @@ -4,14 +4,22 @@ on: release: types: [published] workflow_dispatch: + inputs: + release_tag: + description: Release tag to sync, for example v1.0.0 + required: false jobs: sync-marketplace: runs-on: ubuntu-latest permissions: contents: read + env: + RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag || github.ref_name }} steps: - uses: actions/checkout@v6 + with: + ref: ${{ github.event.release.tag_name || inputs.release_tag || github.ref_name }} - uses: actions/setup-node@v6 with: node-version: 24 @@ -23,7 +31,7 @@ jobs: repository: sendbird/codex-plugins path: marketplace ssh-key: ${{ secrets.CODEX_PLUGINS_DEPLOY_KEY }} - persist-credentials: false + persist-credentials: true - name: Sync marketplace contents run: node scripts/sync-marketplace-release.mjs marketplace - name: Commit and push @@ -36,5 +44,5 @@ jobs: echo "No marketplace changes to push." exit 0 fi - git commit -m "Sync cc release ${GITHUB_REF_NAME}" + git commit -m "Sync cc release ${RELEASE_TAG}" git push origin HEAD:main