Skip to content

Commit 6f4e1f9

Browse files
pbrezinaalexey-tikhonov
authored andcommitted
ci: run long jobs only if Accepted label is not set
To avoid wasting resources on our new merge workflow. Reviewed-by: Alexey Tikhonov <atikhono@redhat.com> Reviewed-by: Justin Stephenson <jstephen@redhat.com>
1 parent f100cb6 commit 6f4e1f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111
jobs:
1212
make-distcheck:
13+
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'Accepted')
1314
runs-on: ubuntu-latest
1415
container: quay.io/sssd/ci-client-devel:latest
1516
permissions:
@@ -57,6 +58,7 @@ jobs:
5758
if-no-files-found: ignore
5859

5960
freebsd:
61+
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'Accepted')
6062
runs-on: ubuntu-latest
6163
steps:
6264
- name: Repository checkout

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ concurrency:
99
cancel-in-progress: true
1010
jobs:
1111
prepare:
12+
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'Accepted')
1213
runs-on: ubuntu-latest
1314
permissions:
1415
contents: read
@@ -23,6 +24,7 @@ jobs:
2324
run: ./contrib/ci/get-matrix.py --action
2425

2526
intgcheck:
27+
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'Accepted')
2628
needs: [prepare]
2729
strategy:
2830
fail-fast: false
@@ -92,6 +94,7 @@ jobs:
9294
./sssd/ci-build-debug/*.valgrind.log
9395
9496
system:
97+
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'Accepted')
9598
needs: [prepare]
9699
strategy:
97100
fail-fast: false

0 commit comments

Comments
 (0)