diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33963a26..4c3ddbf3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -184,20 +184,14 @@ 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=${TAG_SHA}" + -f "sha=${COMMIT_HASH}" - name: Create GitHub Release if: steps.commit-release.outputs.commit-hash != '' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ steps.releaser.outputs.token }} NEW_VERSION: ${{ steps.sampo-release.outputs.new_version }} run: gh release create "v$NEW_VERSION" --generate-notes diff --git a/.sampo/changesets/roguish-king-akka.md b/.sampo/changesets/roguish-king-akka.md new file mode 100644 index 00000000..fbfa509e --- /dev/null +++ b/.sampo/changesets/roguish-king-akka.md @@ -0,0 +1,5 @@ +--- +pypi/posthog: patch +--- + +chore(ci): fix release attribution