@@ -68,32 +68,13 @@ jobs:
6868 git config --global user.name "$GITHUB_ACTOR"
6969 git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
7070
71- # Fetch the commit so that it exists locally.
72- - name : Fetch commit
73- if : ${{ github.event.inputs.dry-run == 'false' }}
74- run : git fetch origin ${GITHUB_EVENT_INPUTS_SHA}
75- env :
76- GITHUB_EVENT_INPUTS_SHA : ${{ github.event.inputs.sha }}
77-
78- # Associate the commit with the tag.
79- - name : Create tag
80- if : ${{ github.event.inputs.dry-run == 'false' }}
81- run : git tag ${GITHUB_EVENT_INPUTS_TAG} ${GITHUB_EVENT_INPUTS_SHA}
82- env :
83- GITHUB_EVENT_INPUTS_TAG : ${{ github.event.inputs.tag }}
84- GITHUB_EVENT_INPUTS_SHA : ${{ github.event.inputs.sha }}
85- - name : Push tag
86- if : ${{ github.event.inputs.dry-run == 'false' }}
87- run : git push origin ${GITHUB_EVENT_INPUTS_TAG}
88- env :
89- GITHUB_EVENT_INPUTS_TAG : ${{ github.event.inputs.tag }}
90-
91- # Create a GitHub release.
71+ # Create a GitHub draft release for the target commit.
9272 - name : Create GitHub Release
9373 if : ${{ github.event.inputs.dry-run == 'false' }}
94- run : just release-create ${GITHUB_EVENT_INPUTS_TAG}
74+ run : just release-create ${GITHUB_EVENT_INPUTS_TAG} ${GITHUB_EVENT_INPUTS_SHA}
9575 env :
9676 GITHUB_EVENT_INPUTS_TAG : ${{ github.event.inputs.tag }}
77+ GITHUB_EVENT_INPUTS_SHA : ${{ github.event.inputs.sha }}
9778
9879 # Uploading the relevant artifact to the GitHub release.
9980 - run : just release-run ${GH_TOKEN} ${GITHUB_EVENT_INPUTS_SHA} ${GITHUB_EVENT_INPUTS_TAG}
0 commit comments