Changeset 53534 for trunk/.github/workflows/slack-notifications.yml
- Timestamp:
- 06/20/2022 02:58:45 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/slack-notifications.yml
r53468 r53534 113 113 } 114 114 115 const expected_events = new Array( 'push', 'schedule', 'workflow_dispatch' ); 116 115 117 // Find the workflow run for the commit that immediately preceded this one. 116 118 for ( let i = 0; i < previous_runs.data.workflow_runs.length; i++ ) { … … 121 123 122 124 // Protects against a false notification when contributors use the trunk branch as the pull request head_ref. 123 if ( previous_runs.data.workflow_runs[ next_index ].event !== "push") {125 if ( expected_events.indexOf( previous_runs.data.workflow_runs[ next_index ].event ) == -1 ) { 124 126 continue; 125 127 }
Note: See TracChangeset
for help on using the changeset viewer.