Skip to content

Commit a65bf8c

Browse files
Add whitelist for who can trigger this
1 parent f35fa6e commit a65bf8c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/draft-new-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ jobs:
99
name: "Draft a new release"
1010
runs-on: ubuntu-latest
1111
# Only run for issues with a specific title and label. Not strictly required but makes finding the release issue again later easier.
12-
if: startsWith(github.event.issue.title, 'Release version') && contains(github.event.issue.labels.*.name, 'release')
12+
# There is also a whitelist that you may want to use to restrict, who can trigger this workflow.
13+
if: startsWith(github.event.issue.title, 'Release version') && \
14+
contains(github.event.issue.labels.*.name, 'release') && \
15+
contains(['thomaseizinger'], github.event.issue.user.login)
1316
steps:
1417
- uses: actions/checkout@v2
1518

0 commit comments

Comments
 (0)