Skip to content

Commit

Permalink
Support custom gh token in tags workflow (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-rodrigues authored Jan 27, 2025
1 parent 5603d80 commit fc56d2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
default: "ubuntu-latest"
required: false
type: string
secrets:
GITHUB_TOKEN:
description: "github token to use for tag creation"
required: false

jobs:
git-tag:
Expand All @@ -28,7 +32,7 @@ jobs:
- name: Create tags
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
github-token: ${{ secrets.GITHUB_TOKEN || github.token }}
script: |
github.rest.git.createRef({
owner: context.repo.owner,
Expand Down

0 comments on commit fc56d2d

Please # to comment.