-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 975 Bytes
/
Merge.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
name: Merge
on:
push:
branches:
- main
jobs:
vet:
uses: ./.github/workflows/vet.yml
test:
uses: ./.github/workflows/test.yml
build:
uses: ./.github/workflows/build.yml
e2e:
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} # if all `needs` jobs are successful
needs: [ vet, test, build ]
uses: ./.github/workflows/e2e.yml
push-to-ghcr:
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} # if all `needs` jobs are successful
needs: [vet, test, e2e, build]
secrets: inherit
uses: ./.github/workflows/push-to-ghcr.yml
push-manifest:
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} # if all `needs` jobs are successful
needs: [vet, test, e2e, build]
secrets: inherit
uses: ./.github/workflows/push-manifest.yml
cleanup:
needs: [vet, test, e2e, build, push-to-ghcr]
secrets: inherit
uses: ./.github/workflows/cleanup.yml