forked from microsoft/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (35 loc) · 1.12 KB
/
main.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
name: ⚙️ Continuous Delivery
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
trigger-sync:
if: ${{ github.repository == 'diddlesnaps/WSL2-Linux-Kernel' }}
uses: ./.github/workflows/sync-upstream.yml
secrets: inherit
trigger-tagger:
needs: trigger-sync
if: ${{ needs.trigger-sync.outputs.missing_tags }}
uses: ./.github/workflows/tag-release.yml
secrets: inherit
with:
missing_tags: ${{ needs.trigger-sync.outputs.missing_tags }}
trigger-build:
needs:
- trigger-sync # need to expliticly add this to access the outputs
- trigger-tagger
if: ${{ needs.trigger-sync.outputs.snapd_tags }}
uses: ./.github/workflows/build-release.yml
secrets: inherit
with:
snapd_tags: ${{ needs.trigger-sync.outputs.snapd_tags }}
trigger-publish:
needs:
- trigger-sync # need to expliticly add this to access the outputs
- trigger-build
if: ${{ always() && needs.trigger-sync.outputs.snapd_tags }}
uses: ./.github/workflows/publish-release.yml
secrets: inherit
with:
snapd_tags: ${{ needs.trigger-sync.outputs.snapd_tags }}