From 4d200084f8d4d00daa343f37a92facc1fc9f973f Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Wed, 26 Jul 2023 07:00:01 +0200 Subject: [PATCH] Never skip workflows for explicitly triggered try jobs (#30027) Do not do the duplicate workflow checks for main workflow jobs triggered by 'issue_comment' GitHub Actions. This prevents try jobs from being skipped. This issue was not detected in my testing, because the main workflow does not run in personal repositories and 'issue_comment' actions cannot be tested from PRs. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1deafed2378..ffba7e7868b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: script: | // Never skip workflow runs for pull requests, merge groups, or manually triggered // workfows / try jobs, which might need to actually run / retry WPT tests. - if (!['pull_request', 'merge_group', 'workflow_run', 'workflow_call'].includes(context.eventName)) { + if (!['issue_comment', 'merge_group', 'pull_request', 'workflow_run', 'workflow_call'].includes(context.eventName)) { // Skip the run if an identical run already exists. This helps to avoid running // the workflow over and over again for the same commit hash. if ((await github.rest.actions.listWorkflowRuns({