File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- if : ${{ startsWith(github.event.release.tag_name, 'v1.' ) }}
12
+ run : echo "Matched ${{version-branch}} branch"
12
13
env :
13
14
version-branch : " v1"
14
15
- if : ${{ startsWith(github.event.release.tag_name, 'v2.' ) }}
16
+ run : echo "Matched ${{version-branch}} branch"
15
17
env :
16
18
version-branch : " v2"
17
19
- if : ${{ startsWith(github.event.release.tag_name, 'v3.' ) }}
20
+ run : echo "Matched ${{version-branch}} branch"
18
21
env :
19
22
version-branch : " v3"
20
23
- if : ${{ startsWith(github.event.release.tag_name, 'v4.' ) }}
24
+ run : echo "Matched ${{version-branch}} branch"
21
25
env :
22
26
version-branch : " main"
23
27
- name : Fail if version-branch is not set
24
28
if : " version-branch == ''"
25
- run : exit 1
29
+ run : |
30
+ echo "Failed to find appropriate branch to release ${{github.event.release.tag_name}} from"
31
+ exit 1
26
32
27
33
- name : Release SDK
28
34
uses : ./.github/workflows/release-project-in-dir.yml
You can’t perform that action at this time.
0 commit comments