-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.17 KB
/
merge-gate.yml
File metadata and controls
49 lines (41 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Merge-Gate
on:
workflow_call:
jobs:
fast-checks:
name: Fast
uses: ./.github/workflows/checks.yml
permissions:
contents: read
run-slow-tests:
name: Run Slow Tests
runs-on: ubuntu-24.04
permissions:
contents: read
# Even though the environment "manual-approval" will be created automatically,
# it still needs to be configured to require interactive review.
# See project settings on GitHub (Settings / Environments / manual-approval).
environment: manual-approval
steps:
- name: Tests
run: echo "Slow tests approved"
slow-checks:
name: Slow
needs: [ run-slow-tests ]
uses: ./.github/workflows/slow-checks.yml
secrets: inherit
permissions:
contents: read
# This job ensures inputs have been executed successfully.
approve-merge:
name: Allow Merge
runs-on: ubuntu-24.04
permissions:
contents: read
# If you need additional jobs to be part of the merge gate, add them below
needs: [ fast-checks, slow-checks ]
# Each job requires a step, so we added this dummy step.
steps:
- name: Approve
run: |
echo "Merge Approved"