Skip to content

Commit 52d6d9e

Browse files
committed
ci: Add checkout step for workflow dispatch in release flow
Signed-off-by: Eric Deandrea <[email protected]>
1 parent 6b8df6c commit 52d6d9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
path: before
4949
token: ${{ steps.app-token.outputs.token }}
5050

51+
- name: Checkout current ref
52+
if: github.event_name == 'workflow_dispatch'
53+
uses: actions/checkout@v5
54+
with:
55+
ref: ${{ github.ref }}
56+
path: before
57+
token: ${{ steps.app-token.outputs.token }}
58+
5159
- name: Capture version before PR
5260
if: github.event_name == 'pull_request'
5361
run: echo "PREVIOUS_VERSION=$(yq '.release.current-version' before/.github/project.yml)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)