Skip to content

Commit 4547810

Browse files
authored
chore(ci): fix release attribution (#461)
The release should now be attribute to the GitHub App that's used, rather than github-actions. But for real this time.
1 parent 579cfdc commit 4547810

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,14 @@ 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')
193187
gh api "repos/${{ github.repository }}/git/refs" \
194188
-f "ref=refs/tags/v${NEW_VERSION}" \
195-
-f "sha=${TAG_SHA}"
189+
-f "sha=${COMMIT_HASH}"
196190
197191
- name: Create GitHub Release
198192
if: steps.commit-release.outputs.commit-hash != ''
199193
env:
200-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
194+
GH_TOKEN: ${{ steps.releaser.outputs.token }}
201195
NEW_VERSION: ${{ steps.sampo-release.outputs.new_version }}
202196
run: gh release create "v$NEW_VERSION" --generate-notes
203197

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): fix release attribution

0 commit comments

Comments
 (0)