Skip to content

Commit 8d82855

Browse files
authored
chore: remove v prefix from release tags (#524)
1 parent 15c1527 commit 8d82855

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ jobs:
185185
COMMIT_HASH: ${{ steps.commit-release.outputs.commit-hash }}
186186
run: |
187187
gh api "repos/${{ github.repository }}/git/refs" \
188-
-f "ref=refs/tags/v${NEW_VERSION}" \
188+
-f "ref=refs/tags/${NEW_VERSION}" \
189189
-f "sha=${COMMIT_HASH}"
190190
191191
- name: Create GitHub Release
192192
if: steps.commit-release.outputs.commit-hash != ''
193193
env:
194194
GH_TOKEN: ${{ steps.releaser.outputs.token }}
195195
NEW_VERSION: ${{ steps.sampo-release.outputs.new_version }}
196-
run: gh release create "v$NEW_VERSION" --generate-notes
196+
run: gh release create "$NEW_VERSION" --generate-notes
197197

198198
- name: Dispatch generate-references
199199
if: steps.commit-release.outputs.commit-hash != ''
@@ -213,7 +213,7 @@ jobs:
213213
"commitSha": "${{ github.sha }}",
214214
"jobStatus": "${{ job.status }}",
215215
"ref": "${{ github.ref }}",
216-
"version": "v${{ steps.sampo-release.outputs.new_version }}"
216+
"version": "${{ steps.sampo-release.outputs.new_version }}"
217217
}
218218
219219
- name: Notify Slack - Failed
@@ -223,7 +223,7 @@ jobs:
223223
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
224224
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
225225
thread_ts: ${{ needs.notify-approval-needed.outputs.slack_ts }}
226-
message: "❌ Failed to release `posthog-python@v${{ steps.sampo-release.outputs.new_version }}`! <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
226+
message: "❌ Failed to release `posthog-python@${{ steps.sampo-release.outputs.new_version }}`! <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
227227
emoji_reaction: "x"
228228

229229
notify-released:

0 commit comments

Comments
 (0)