Skip to content

Commit 3fd57e1

Browse files
committed
Use two token in parallel
1 parent acb2c3d commit 3fd57e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-drafter.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name: 'Draft next Release notes'
33
on:
44
workflow_call:
55
secrets:
6+
BOT_TOKEN:
7+
required: false
68
GITHUB_TOKEN:
7-
required: true
9+
required: false
810
push:
911
# branches to consider in the event; optional, defaults to all
1012
branches:
@@ -31,4 +33,4 @@ jobs:
3133
# config-name: my-config.yml
3234
# disable-autolabeler: true
3335
env:
34-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)