File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2222 needs : version-type
2323 outputs :
2424 version : ${{ steps.get-version.outputs.version }}
25+ commit_hash : ${{ steps.version-commit.outputs.commit_hash }}
2526 steps :
2627 - name : Generate GH App token
2728 uses : actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
9192 git tag v$VERSION
9293 git push
9394 git push --tags
95+
96+ - name : Output version bump commit hash
97+ id : version-commit
98+ run : |
99+ echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
94100
95101 release :
96102 name : GitHub release
@@ -116,6 +122,9 @@ jobs:
116122 steps :
117123 - name : Check out repo
118124 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
125+ with :
126+ fetch-depth : 0
127+ ref : ${{ needs.version-bump.outputs.commit_hash }}
119128
120129 - name : Set up Python
121130 uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
You can’t perform that action at this time.
0 commit comments