@@ -49,36 +49,16 @@ jobs:
49
49
fail-fast : false
50
50
matrix :
51
51
build_type : [sp, dbg, fpe, opt]
52
- # Run this workflow if:
53
- # - workflow_dispatch: user requested this job.
54
- # - schedule: always:
55
- # - pull_request: matching skip label is NOT found
56
- if : |
57
- ${{
58
- github.event_name == 'schedule' ||
59
- ( github.event_name == 'workflow_dispatch' && github.event.inputs.jobs_list == 'gcc-openmp' ) ||
60
- (
61
- github.event_name == 'pull_request' &&
62
- !(
63
- contains(github.event.pull_request.labels.*.name, 'AT: skip gcc') ||
64
- contains(github.event.pull_request.labels.*.name, 'AT: skip openmp') ||
65
- contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-sa') ||
66
- contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-all')
67
- )
68
- )
69
- }}
52
+ if : ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.jobs_list != 'gcc-openmp') }}
70
53
name : gcc-openmp / ${{ matrix.build_type }}
71
54
steps :
72
55
- name : Show action trigger
73
- uses : actions/github-script@v7
56
+ uses : .github/actions/show-workflow-trigger
57
+ - name : Check for skip labels
58
+ if : github.event_name == "pull_request" || github.event_name == "pull_request_review"
59
+ uses : ./github/actions/check-skip-labels
74
60
with :
75
- script : |
76
- const eventName = context.eventName;
77
- const eventAction = context.payload.action || 'N/A';
78
- const actor = context.actor;
79
- console.log(`The job was triggered by a ${eventName} event.`);
80
- console.log(` - Event action: ${eventAction}`);
81
- console.log(` - Triggered by: ${actor}`);
61
+ skip_labels : ' AT: skip gcc,AT: skip openmp,AT: skip eamxx-sa,AT: skip eamxx-all'
82
62
- name : Check out the repository
83
63
uses : actions/checkout@v4
84
64
with :
0 commit comments