File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - if : ${{ startsWith(github.event.release.tag_name, 'v1.' ) }}
12+ run : echo "Matched ${{version-branch}} branch"
1213 env :
1314 version-branch : " v1"
1415 - if : ${{ startsWith(github.event.release.tag_name, 'v2.' ) }}
16+ run : echo "Matched ${{version-branch}} branch"
1517 env :
1618 version-branch : " v2"
1719 - if : ${{ startsWith(github.event.release.tag_name, 'v3.' ) }}
20+ run : echo "Matched ${{version-branch}} branch"
1821 env :
1922 version-branch : " v3"
2023 - if : ${{ startsWith(github.event.release.tag_name, 'v4.' ) }}
24+ run : echo "Matched ${{version-branch}} branch"
2125 env :
2226 version-branch : " main"
2327 - name : Fail if version-branch is not set
2428 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
2632
2733 - name : Release SDK
2834 uses : ./.github/workflows/release-project-in-dir.yml
You can’t perform that action at this time.
0 commit comments