Skip to content

Commit 7aff00f

Browse files
committed
Workflows: skip eamxx v1/sa testing on draft PRs
1 parent 6d3abef commit 7aff00f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/eamxx-standalone-testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
# Run this workflow if:
5252
# - workflow_dispatch: user requested this job.
5353
# - schedule: always:
54-
# - pull_request: matching skip label is NOT found
54+
# - pull_request: matching skip label is NOT found, and it's not a draft PR
5555
if: |
5656
${{
5757
github.event_name == 'schedule' ||
@@ -63,7 +63,8 @@ jobs:
6363
contains(github.event.pull_request.labels.*.name, 'AT: skip openmp') ||
6464
contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-sa') ||
6565
contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-all')
66-
)
66+
) &&
67+
!github.event.pull_request.draft
6768
)
6869
}}
6970
name: gcc-openmp / ${{ matrix.build_type }}

.github/workflows/eamxx-v1-testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Run this workflow if:
5656
# - workflow_dispatch: user requested this job.
5757
# - schedule: always:
58-
# - pull_request: matching skip label is NOT found
58+
# - pull_request: matching skip label is NOT found, and it's not a draft PR
5959
if: |
6060
${{
6161
github.event_name == 'schedule' ||
@@ -66,7 +66,8 @@ jobs:
6666
contains(github.event.pull_request.labels.*.name, 'AT: skip gcc') ||
6767
contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-v1') ||
6868
contains(github.event.pull_request.labels.*.name, 'AT: skip eamxx-all')
69-
)
69+
) &&
70+
!github.event.pull_request.draft
7071
)
7172
}}
7273
steps:

0 commit comments

Comments
 (0)