Skip to content

Commit

Permalink
ci: release-as workflow now pulls all tags correctly and uses a PAT t…
Browse files Browse the repository at this point in the history
…o merge the PR (#111)
  • Loading branch information
ctran88 authored Nov 27, 2024
1 parent be26032 commit ab34bf9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-as.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
secrets: inherit

0 comments on commit ab34bf9

Please sign in to comment.