From 1b067ae36e3c5aac7c46848954843fce2d75dfc4 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Thu, 18 Apr 2024 14:31:34 -0700 Subject: [PATCH] use personal token so release pr runs CI --- .github/workflows/cd-release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-release.yaml b/.github/workflows/cd-release.yaml index bb430f9d08..9dbb3750b1 100644 --- a/.github/workflows/cd-release.yaml +++ b/.github/workflows/cd-release.yaml @@ -32,6 +32,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN || secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} - name: Update Doltgres version command run: sed -i -e 's/ Version = ".*"/ Version = "'"$NEW_VERSION"'"/' "$FILE" env: @@ -46,11 +48,11 @@ jobs: - name: Create Pull Request run: gh pr create --base main --head "cd-release" --title "Release v${{ needs.format-version.outputs.version }}" --body "Created by the Release workflow to update DoltgreSQL's version" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN || secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} - name: Enable Pull Request Auto-Merge run: gh pr merge --merge --auto "cd-release" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN || secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} - name: Install Go uses: actions/setup-go@v5 with: