Skip to content

Commit f120625

Browse files
chmouelzakisk
authored andcommitted
chore: Run E2E tests based on author association
- Replaced the hardcoded list of usernames in the E2E workflow trigger - Triggered E2E tests for pull requests from authors with OWNER, MEMBER, or COLLABORATOR association - Simplified maintenance by automatically allowing trusted contributors to run E2E tests Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent fa877bb commit f120625

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/e2e.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
if: >
3232
github.event_name == 'schedule' ||
3333
github.event_name == 'workflow_dispatch' ||
34-
(github.event_name == 'pull_request_target' && contains(fromJSON('["zakisk", "infernus01", "savitaashture", "chmouel", "vdemeester", "PuneetPunamiya", "enarha", "aThorp96", "sm43", "waveywaves", "dependabot[bot]"]'), github.event.pull_request.user.login))
34+
(github.event_name == 'pull_request_target' &&
35+
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association))
3536
concurrency:
3637
group: ${{ github.workflow }}-${{ matrix.provider }}-${{ github.event.pull_request.number || github.ref_name }}
3738
cancel-in-progress: true

0 commit comments

Comments
 (0)