File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1+ ---
2+ pypi/posthog : patch
3+ ---
4+
5+ chore(ci): fix release attribution
You can’t perform that action at this time.
0 commit comments