diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33b276a..07d9cdd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,19 +20,24 @@ jobs: - name: Install Git SemVer run: go install . - - - name: Bump Version - run: | - git config --global user.name "${{ secrets.CB_RELEASE_BOT_NAME }}" - git config --global user.email "${{ secrets.CB_RELEASE_BOT_EMAIL }}" - git semver bump - + - id: release-bot name: Authenticate with Release Bot uses: getsentry/action-github-app-token@v1 with: app_id: ${{ secrets.CB_RELEASE_BOT_ID }} private_key: "${{ secrets.CB_RELEASE_BOT_PRIVATE_KEY }}" + + - name: Setup Git Credentials + uses: fusion-engineering/setup-git-credentials@v2 + with: + credentials: https://carlsberg-release-bot[bot]:${{ steps.release-bot.outputs.token }}@github.com/ + + - name: Bump Version + run: | + git config --global user.name "${{ secrets.CB_RELEASE_BOT_NAME }}" + git config --global user.email "${{ secrets.CB_RELEASE_BOT_EMAIL }}" + git semver bump - name: GoReleaser uses: goreleaser/goreleaser-action@v2