Skip to content

Commit 79d845b

Browse files
authored
Merge pull request #18 from alyssacgoins/gatekeeper-workflow
Gatekeeper workflow
2 parents 2abc3c8 + 4f5369a commit 79d845b

38 files changed

Lines changed: 296 additions & 15 deletions

.github/workflows/add-ci-passed-label.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ permissions:
2020
issues: write
2121

2222
jobs:
23+
gatekeeper:
24+
uses: ./.github/workflows/wait-for-gatekeeper.yml
25+
2326
fetch_data:
2427
name: Fetch PR eligibility
28+
needs: gatekeeper
2529
runs-on: ubuntu-latest
2630
outputs:
2731
pr_number: ${{ steps.pr.outputs.pr_number }}
@@ -87,6 +91,7 @@ jobs:
8791
8892
reset_ci_passed_label:
8993
name: Reset stale 'ci-passed' label
94+
needs: gatekeeper
9095
runs-on: ubuntu-latest
9196
steps:
9297
- name: Remove existing 'ci-passed' label
@@ -125,7 +130,7 @@ jobs:
125130
add_ci_passed_label:
126131
name: Add 'ci-passed' label
127132
runs-on: ubuntu-latest
128-
needs: fetch_data
133+
needs: [fetch_data,gatekeeper]
129134
steps:
130135
- name: Add 'ci-passed' label
131136
shell: bash

.github/workflows/api-server-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ concurrency:
6060
cancel-in-progress: true
6161

6262
jobs:
63+
gatekeeper:
64+
uses: ./.github/workflows/wait-for-gatekeeper.yml
65+
6366
build:
67+
needs: gatekeeper
6468
uses: ./.github/workflows/image-builds.yml
6569

6670
api-test-standalone:

.github/workflows/backend-visualization.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ on:
1717
- '!**/OWNERS'
1818

1919
jobs:
20+
gatekeeper:
21+
uses: ./.github/workflows/wait-for-gatekeeper.yml
22+
2023
backend-visualization-test:
24+
needs: gatekeeper
2125
runs-on: ubuntu-latest
2226
steps:
2327
- name: Checkout code

.github/workflows/build-prs-trigger.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ concurrency:
1515
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1616
cancel-in-progress: true
1717
jobs:
18+
gatekeeper:
19+
uses: ./.github/workflows/wait-for-gatekeeper.yml
20+
1821
upload-data:
22+
needs: gatekeeper
1923
runs-on: ubuntu-latest
2024
steps:
2125
- uses: actions/checkout@v2

.github/workflows/build-prs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build images for PRs
22
on:
33
workflow_run:
4-
workflows: ["Trigger PR CI"]
4+
workflows: [ "Trigger PR CI" ]
55
types:
66
- completed
77
env:
@@ -11,7 +11,11 @@ env:
1111
GH_USER_EMAIL: 140449482+dsp-developers@users.noreply.github.com
1212
GH_USER_NAME: dsp-developers
1313
jobs:
14+
gatekeeper:
15+
uses: ./.github/workflows/wait-for-gatekeeper.yml
16+
1417
fetch-data:
18+
needs: gatekeeper
1519
name: Fetch workflow payload
1620
runs-on: ubuntu-latest
1721
if: >

.github/workflows/build-tools-images.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ concurrency:
2929
cancel-in-progress: false
3030

3131
jobs:
32+
gatekeeper:
33+
uses: ./.github/workflows/wait-for-gatekeeper.yml
34+
3235
build-tools:
36+
needs: gatekeeper
3337
name: Build tools images
3438
runs-on: ubuntu-latest
3539
steps:

.github/workflows/ci-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ name: CI Check
44
on:
55
pull_request_target:
66
types: [opened, synchronize, reopened, labeled, unlabeled]
7-
workflow_run:
8-
workflows: [ "Stable Merge Integration Test Check" ] # Triggers when "Stable Merge Integration Test Check" succeeds
9-
types: [completed]
10-
branches: [stable]
117

128
jobs:
9+
gatekeeper:
10+
uses: ./.github/workflows/wait-for-gatekeeper.yml
11+
1312
check_ci_status:
13+
needs: gatekeeper
1414
runs-on: ubuntu-latest
1515
permissions:
1616
checks: read

.github/workflows/commit-check-pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ env:
99
GH_USER_EMAIL: 140449482+dsp-developers@users.noreply.github.com
1010
GH_USER_NAME: dsp-developers
1111
jobs:
12+
gatekeeper:
13+
uses: ./.github/workflows/wait-for-gatekeeper.yml
14+
1215
fetch-data:
16+
needs: gatekeeper
1317
name: Fetch workflow payload
1418
runs-on: ubuntu-latest
1519
if: >

.github/workflows/compiler-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ on:
4040
- '!**/OWNERS'
4141

4242
jobs:
43+
gatekeeper:
44+
uses: ./.github/workflows/wait-for-gatekeeper.yml
45+
4346
compiler-tests:
47+
needs: gatekeeper
4448
runs-on: ubuntu-latest
4549
name: Workflow Compiler Tests
4650

.github/workflows/e2e-test-frontend.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ on:
2222
- '!**/OWNERS'
2323

2424
jobs:
25+
gatekeeper:
26+
uses: ./.github/workflows/wait-for-gatekeeper.yml
27+
2528
build:
29+
needs: gatekeeper
2630
uses: ./.github/workflows/image-builds.yml
2731

2832
frontend-integration-test:

0 commit comments

Comments
 (0)