Skip to content

Commit 1093255

Browse files
committed
fix(ci): use the regular token for manual triggered pipeline runs
Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>
1 parent 26a6473 commit 1093255

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/release-to-homebrew.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,19 @@ jobs:
3535
3636
- name: Get version from tag
3737
if: github.event_name == 'push' && contains(github.event.ref, 'refs/tags/v')
38-
run: echo RELEASE_VERSION=${GITHUB_REF#refs/tags/v} >> $GITHUB_ENV
38+
run: |
39+
echo RELEASE_VERSION=${GITHUB_REF#refs/tags/v} >> $GITHUB_ENV
40+
echo COMMITTER_TOKEN=${{ steps.app-token.outputs.token }} >> $GITHUB_ENV
3941
shell: bash
4042
- name: Get version from input
4143
if: github.event_name == 'workflow_dispatch'
42-
run: echo RELEASE_VERSION=${{ github.event.inputs.version }} >> $GITHUB_ENV
44+
run: |
45+
echo RELEASE_VERSION=${{ github.event.inputs.version }} >> $GITHUB_ENV
46+
echo COMMITTER_TOKEN=${{ secrets.GITHUB_TOKEN }} >> $GITHUB_ENV
4347
shell: bash
4448
- uses: mislav/bump-homebrew-formula-action@v3
49+
# this action needs the COMMITTER_TOKEN to be set in the environment from above
4550
with:
4651
formula-name: t-rec
4752
tag-name: v${{ env.RELEASE_VERSION }}
4853
version: ${{ env.RELEASE_VERSION }}
49-
50-
env:
51-
COMMITTER_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)