From 63fd9800623c738e291ea304ba37a1d0073148b5 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Tue, 10 Mar 2026 14:40:06 -0700 Subject: [PATCH] chore(ci): fix release attribution The release should now be attribute to the GitHub App that's used, rather than github-actions. But for real this time. --- .github/workflows/release.yml | 10 ++-------- .sampo/changesets/roguish-king-akka.md | 5 +++++ 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 .sampo/changesets/roguish-king-akka.md 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