From c4802ac1e7f7f89a8abd860c58ec3099f8311779 Mon Sep 17 00:00:00 2001 From: Johann Diedrick Date: Thu, 20 Nov 2025 14:11:12 -0500 Subject: [PATCH] using RELEASE_PAT when merging into main --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 20d2a39..eeb5b65 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,6 +46,12 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" + - name: Configure push credentials + if: github.event.pull_request.base.ref == 'main' + run: | + echo "::add-mask::${{ secrets.RELEASE_PAT }}" + git remote set-url origin https://x-access-token:${{ secrets.RELEASE_PAT }}@github.com/${{ github.repository }}.git + - name: Prepare release on main if: github.event.pull_request.base.ref == 'main' id: prepare_main