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,9 +184,15 @@ 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')
187193 gh api "repos/${{ github.repository }}/git/refs" \
188- -f "ref=refs/tags/v$NEW_VERSION" \
189- -f "sha=$COMMIT_HASH "
194+ -f "ref=refs/tags/v${ NEW_VERSION} " \
195+ -f "sha=${TAG_SHA} "
190196
191197 - name : Create GitHub Release
192198 if : steps.commit-release.outputs.commit-hash != ''
Original file line number Diff line number Diff line change 1+ ---
2+ pypi/posthog : patch
3+ ---
4+
5+ chore(ci): attribute release tag to GitHub App
You can’t perform that action at this time.
0 commit comments