Skip to content

Commit 6d7c747

Browse files
committed
fix: add missing run steps
1 parent 506a103 commit 6d7c747

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,26 @@ jobs:
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

0 commit comments

Comments
 (0)