Skip to content

Commit 4eec5c9

Browse files
Go back to contains, I just used the wrong label in my test
1 parent bcd4915 commit 4eec5c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
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.
1212
# 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') && contains(github.event.issue.labels.*.name, 'release') && ('thomaseizinger' == github.event.issue.user.login || 'someotheruser' == github.event.issue.user.login)
13+
# Unfortunately, we cannot create an array on the fly, so the whitelist is just comma-separated.
14+
if: startsWith(github.event.issue.title, 'Release version') && contains(github.event.issue.labels.*.name, 'release') && contains('thomaseizinger,yourusername', github.event.issue.user.login)
1415
steps:
1516
- uses: actions/checkout@v2
1617

0 commit comments

Comments
 (0)