Skip to content

Commit 6dc66fd

Browse files
authored
Merge branch 'main' into ci/update-version-action-alpha
2 parents b2cddd6 + 12842b2 commit 6dc66fd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,19 @@
22
name: 'Create Release'
33

44
on:
5-
workflow_dispatch:
65
workflow_run:
76
workflows: ["Tag Release"]
87
types:
98
- completed
109

1110
jobs:
1211
release:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
1717

18-
- name: Get the latest tag
19-
run: |
20-
git fetch --tags
21-
LATEST_TAG="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
22-
echo "LATEST_TAG=${LATEST_TAG}" >> "$GITHUB_ENV"
23-
2418
- name: Extract TS SDK version from index.js
2519
id: extract_ts_sdk_version
2620
run: |
@@ -58,7 +52,7 @@ jobs:
5852
- name: Create Release
5953
uses: mikepenz/[email protected]
6054
with:
61-
tag_name: ${{ env.LATEST_TAG }}
55+
tag_name: ${{ env.VERSION }}
6256
body: |
6357
${{steps.github_release.outputs.changelog}}
6458

0 commit comments

Comments
 (0)