Skip to content

Commit b19558d

Browse files
committed
ci: Allow manual run on main
Hotfix, pushed directly to main Signed-off-by: Anastassios Nanos <ananos@nubificus.co.uk> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
1 parent 09918a2 commit b19558d

2 files changed

Lines changed: 54 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build and Verify
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
verify-build:
13+
name: Verify Build
14+
uses: ./.github/workflows/verify-build.yml
15+
secrets: inherit
16+
17+
verify-build-strict:
18+
name: Verify Build (Strict)
19+
uses: ./.github/workflows/verify-build.yml
20+
with:
21+
strict: true
22+
secrets: inherit
23+
24+
verify-links:
25+
name: Verify Links
26+
uses: ./.github/workflows/verify-links.yml
27+
secrets: inherit
28+
29+
validate-files-and-commits:
30+
name: Validate Files and Commits
31+
uses: nubificus/vaccel/.github/workflows/validate-files-and-commits.yml@main
32+
secrets: inherit
33+
34+
validate-code-and-markdown:
35+
name: Validate Code and Markdown
36+
uses: ./.github/workflows/validate-code-and-markdown.yml
37+
secrets: inherit
38+
39+
# Dummy job for setting required checks
40+
jobs-completed:
41+
needs:
42+
- verify-build
43+
- verify-build-strict
44+
- verify-links
45+
- validate-files-and-commits
46+
- validate-code-and-markdown
47+
name: Jobs Completed
48+
runs-on: base-2204-amd64
49+
steps:
50+
- run: exit 0
Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Verify
1+
name: PR Build and Verify
22

33
on:
44
pull_request:
@@ -12,47 +12,8 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
verify-build:
16-
name: Verify Build
15+
check:
16+
name: Run checks
1717
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
18-
uses: ./.github/workflows/verify-build.yml
18+
uses: ./.github/workflows/ci.yml
1919
secrets: inherit
20-
21-
verify-build-strict:
22-
name: Verify Build (Strict)
23-
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
24-
uses: ./.github/workflows/verify-build.yml
25-
with:
26-
strict: true
27-
secrets: inherit
28-
29-
verify-links:
30-
name: Verify Links
31-
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
32-
uses: ./.github/workflows/verify-links.yml
33-
secrets: inherit
34-
35-
validate-files-and-commits:
36-
name: Validate Files and Commits
37-
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
38-
uses: nubificus/vaccel/.github/workflows/validate-files-and-commits.yml@main
39-
secrets: inherit
40-
41-
validate-code-and-markdown:
42-
name: Validate Code and Markdown
43-
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
44-
uses: ./.github/workflows/validate-code-and-markdown.yml
45-
secrets: inherit
46-
47-
# Dummy job for setting required checks
48-
jobs-completed:
49-
needs:
50-
# - verify-build
51-
#- verify-build-strict
52-
- verify-links
53-
#- validate-files-and-commits
54-
- validate-code-and-markdown
55-
name: Jobs Completed
56-
runs-on: base-2204-amd64
57-
steps:
58-
- run: exit 0

0 commit comments

Comments
 (0)