-
Notifications
You must be signed in to change notification settings - Fork 326
58 lines (47 loc) · 1.5 KB
/
engine-pull-request.yml
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
50
51
52
53
54
55
56
57
58
# This file is not auto-generated. Feel free to edit it.
name: ✨ Engine
on:
push:
branches:
- develop
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-engine-pull-request
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
permissions:
checks: write
pull-requests: write
jobs:
engine-changed-files:
name: 🔍 Files Changed
uses: ./.github/workflows/engine-changed-files.yml
secrets: inherit
engine-checks:
name: ⚙️ Checks
uses: ./.github/workflows/engine-checks.yml
needs: [engine-changed-files]
if: needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop'
secrets: inherit
engine-checks-optional:
name: ⚙️ Checks (Optional)
uses: ./.github/workflows/engine-checks-optional.yml
needs: [engine-changed-files]
if: needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop'
secrets: inherit
stdlib-api-changes-label:
name: 🏷 Append labels to PR
uses: ./.github/workflows/std-libs-labels.yml
secrets: inherit
required-checks:
name: Engine Required Checks
runs-on: ubuntu-latest
needs: [engine-checks, stdlib-api-changes-label]
if: always()
steps:
- name: Checks Summary
run: |
echo "Engine Checks: ${{ needs.engine-checks.result }}"
if [[ "${{ needs.engine-checks.result }}" == "failure" ]]; then
exit 1
fi
echo "Success!"