Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,15 @@ jobs:
NEW_VERSION: ${{ steps.sampo-release.outputs.new_version }}
COMMIT_HASH: ${{ steps.commit-release.outputs.commit-hash }}
run: |
TAG_SHA=$(gh api "repos/${{ github.repository }}/git/tags" \
-f "tag=v${NEW_VERSION}" \
-f "message=Release v${NEW_VERSION}" \
-f "object=${COMMIT_HASH}" \
-f "type=commit" \
-q '.sha')
gh api "repos/${{ github.repository }}/git/refs" \
-f "ref=refs/tags/v$NEW_VERSION" \
-f "sha=$COMMIT_HASH"
-f "ref=refs/tags/v${NEW_VERSION}" \
-f "sha=${TAG_SHA}"
Comment on lines 184 to +195
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Re: lines +177 to +195]

Should probably be turned into a shared action if this works! This is a bit cryptic

See this comment inline on Graphite.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was reverted in #461

- name: Create GitHub Release
if: steps.commit-release.outputs.commit-hash != ''
Expand Down
5 changes: 5 additions & 0 deletions .sampo/changesets/roguish-runesmith-ukko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
pypi/posthog: patch
---

chore(ci): attribute release tag to GitHub App
Loading