Skip to content

Commit b48a7ac

Browse files
authored
fix(ci): attribute release tag to GitHub App (#460)
* fix(ci): attribute release tag to GitHub App * Add changeset for release
1 parent 5caff95 commit b48a7ac

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,15 @@ jobs:
184184
NEW_VERSION: ${{ steps.sampo-release.outputs.new_version }}
185185
COMMIT_HASH: ${{ steps.commit-release.outputs.commit-hash }}
186186
run: |
187+
TAG_SHA=$(gh api "repos/${{ github.repository }}/git/tags" \
188+
-f "tag=v${NEW_VERSION}" \
189+
-f "message=Release v${NEW_VERSION}" \
190+
-f "object=${COMMIT_HASH}" \
191+
-f "type=commit" \
192+
-q '.sha')
187193
gh api "repos/${{ github.repository }}/git/refs" \
188-
-f "ref=refs/tags/v$NEW_VERSION" \
189-
-f "sha=$COMMIT_HASH"
194+
-f "ref=refs/tags/v${NEW_VERSION}" \
195+
-f "sha=${TAG_SHA}"
190196
191197
- name: Create GitHub Release
192198
if: steps.commit-release.outputs.commit-hash != ''
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
pypi/posthog: patch
3+
---
4+
5+
chore(ci): attribute release tag to GitHub App

0 commit comments

Comments
 (0)