From a0636013a3c137cb02568d9574bf77d824cf9f9a Mon Sep 17 00:00:00 2001 From: Chris Tran Date: Tue, 26 Nov 2024 14:08:05 -0600 Subject: [PATCH] ci: release-as workflow now pulls all tags correctly and uses a PAT to merge the PR --- .github/workflows/release-as.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-as.yml b/.github/workflows/release-as.yml index 97c0a87..61e9e7a 100644 --- a/.github/workflows/release-as.yml +++ b/.github/workflows/release-as.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Get latest tag id: latest-tag run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT @@ -29,10 +31,10 @@ jobs: git commit --allow-empty -m "chore: release ${{ github.event.inputs.version }}" -m "Release-As: ${{ github.event.inputs.version }}" git push origin release-as-v${{ github.event.inputs.version }} gh pr create --title "chore: Release as v${{ github.event.inputs.version }}" --body "Release as v${{ github.event.inputs.version }}" --base main - gh pr merge --squash --delete-branch + gh pr merge --squash --delete-branch --admin env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.BE_SDK_PAT }} call-release-workflow: needs: release-as uses: ./.github/workflows/release.yml - secrets: inherit \ No newline at end of file + secrets: inherit