forked from networkservicemesh/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.42 KB
/
release.yaml
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
53
54
---
name: Release
on:
workflow_run:
types:
- completed
workflows:
- "ci"
branches:
- release/*
jobs:
print-debug-info:
name: Print debug info for Release workflow
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
get-tag:
name: Get tag
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release/') }}
outputs:
tag: ${{ steps.get-tag-step.outputs.tag }}
steps:
- name: Get tag
run: |
branch=${{github.event.workflow_run.head_branch}}
echo tag=${branch#release/} >> $GITHUB_OUTPUT
id: get-tag-step
release-dependent-repositories:
name: Release dependent repositories
needs: get-tag
uses: networkservicemesh/.github/.github/workflows/release-dependent-repositories.yaml@main
with:
tag: ${{ needs.get-tag.outputs.tag }}
dependent_repositories: |
["sdk-k8s",
"sdk-kernel",
"cmd-nsmgr",
"cmd-nsmgr-proxy",
"cmd-registry-memory",
"cmd-registry-proxy-dns",
"cmd-nse-remote-vlan",
"cmd-nse-vfio",
"cmd-nsc-init",
"cmd-ipam-vl3",
"cmd-map-ip-k8s",
"cmd-admission-webhook-k8s",
"cmd-cluster-info-k8s",
"cmd-csi-driver",
"cmd-dashboard-backend"]
secrets:
token: ${{ secrets.GITHUB_TOKEN }}