forked from andychase/gbajs2
-
Notifications
You must be signed in to change notification settings - Fork 27
52 lines (47 loc) · 1.45 KB
/
unprotected.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
name: Unprotected
on:
push:
branches: ['**', '!master']
pull_request:
branches: ['**', '!master']
jobs:
change-detect:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
pull-requests: read
outputs:
admin: ${{ steps.filter.outputs.admin }}
auth: ${{ steps.filter.outputs.auth }}
gbajs3: ${{ steps.filter.outputs.gbajs3 }}
duplicate_check: ${{ steps.skip_check.outputs.should_skip }}
steps:
- uses: actions/checkout@v4
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
cancel_others: 'true'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
admin:
- 'admin/**'
auth:
- 'auth/**'
gbajs3:
- 'gbajs3/**'
admin:
needs: change-detect
if: needs.change-detect.outputs.admin == 'true' && needs.change-detect.outputs.duplicate_check != 'true'
uses: ./.github/workflows/admin.workflow.yml
auth:
needs: change-detect
if: needs.change-detect.outputs.auth == 'true' && needs.change-detect.outputs.duplicate_check != 'true'
uses: ./.github/workflows/auth.workflow.yml
gbajs3:
needs: change-detect
if: needs.change-detect.outputs.gbajs3 == 'true' && needs.change-detect.outputs.duplicate_check != 'true'
uses: ./.github/workflows/gbajs3.workflow.yml