55 pull_request :
66
77jobs :
8- devcontainer :
8+ deduplicate :
99 # Deduplicate jobs from pull requests and branch pushes within the same repo.
1010 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
11+ steps :
12+ - name : Empty
13+
14+ devcontainer :
15+ needs : deduplicate
1116 uses : ./.github/workflows/_devcontainer.yaml
1217
1318 bundler_lint :
14- # Deduplicate jobs from pull requests and branch pushes within the same repo.
15- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
19+ needs : deduplicate
1620 uses : ./.github/workflows/_bundler_lint.yaml
1721
1822 bundler_test :
19- # Deduplicate jobs from pull requests and branch pushes within the same repo.
20- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
23+ needs : deduplicate
2124 uses : ./.github/workflows/_bundler_test.yaml
2225
2326 bundler_container :
24- # Deduplicate jobs from pull requests and branch pushes within the same repo.
25- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
2627 needs :
28+ - deduplicate
2729 - bundler_lint
2830 - bundler_test
2931 permissions :
@@ -32,24 +34,20 @@ jobs:
3234 uses : ./.github/workflows/_bundler_container.yaml
3335
3436 bundler_docs :
35- # Deduplicate jobs from pull requests and branch pushes within the same repo.
36- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
37+ needs : deduplicate
3738 uses : ./.github/workflows/_bundler_docs.yaml
3839
3940 policy_lint :
40- # Deduplicate jobs from pull requests and branch pushes within the same repo.
41- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
41+ needs : deduplicate
4242 uses : ./.github/workflows/_policy_lint.yaml
4343
4444 policy_test :
45- # Deduplicate jobs from pull requests and branch pushes within the same repo.
46- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
45+ needs : deduplicate
4746 uses : ./.github/workflows/_policy_test.yaml
4847
4948 policy_container :
50- # Deduplicate jobs from pull requests and branch pushes within the same repo.
51- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
5249 needs :
50+ - deduplicate
5351 - policy_lint
5452 - policy_test
5553 permissions :
@@ -58,48 +56,42 @@ jobs:
5856 uses : ./.github/workflows/_policy_container.yaml
5957
6058 helm_chart_lint :
61- # Deduplicate jobs from pull requests and branch pushes within the same repo.
62- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
59+ needs : deduplicate
6360 uses : ./.github/workflows/_helm_chart_lint.yaml
6461
6562 helm_chart_publish :
66- # Deduplicate jobs from pull requests and branch pushes within the same repo.
67- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
68- needs : helm_chart_lint
63+ needs :
64+ - deduplicate
65+ - helm_chart_lint
6966 permissions :
7067 contents : read
7168 packages : write
7269 uses : ./.github/workflows/_helm_chart_publish.yaml
7370
7471 docs_lint :
75- # Deduplicate jobs from pull requests and branch pushes within the same repo.
76- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
72+ needs : deduplicate
7773 uses : ./.github/workflows/_docs_lint.yaml
7874
7975 docs_build :
80- # Deduplicate jobs from pull requests and branch pushes within the same repo.
81- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
76+ needs : deduplicate
8277 uses : ./.github/workflows/_docs_build.yaml
8378
8479 techdocs_publish :
85- # Deduplicate jobs from pull requests and branch pushes within the same repo.
86- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
8780 needs :
81+ - deduplicate
8882 - docs_lint
8983 - docs_build
9084 uses : ./.github/workflows/_techdocs_publish.yaml
9185
9286 pages_build :
93- # Deduplicate jobs from pull requests and branch pushes within the same repo.
94- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
9587 needs :
88+ - deduplicate
9689 - bundler_docs
9790 - docs_lint
9891 - docs_build
9992 uses : ./.github/workflows/_pages_build.yaml
10093
10194 pages_publish :
102- # Deduplicate jobs from pull requests and branch pushes within the same repo.
10395 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
10496 needs : pages_build
10597 permissions :
0 commit comments