Skip to content

Commit 1382376

Browse files
committed
add checkout ref input
1 parent 6fa7137 commit 1382376

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ on:
2424
tag_name:
2525
required: true
2626
type: string
27+
checkout_ref:
28+
type: string
2729
publish_to_pypi:
2830
description: 'Publish to PyPI'
2931
required: true
@@ -41,7 +43,7 @@ jobs:
4143
- name: Checkout
4244
uses: actions/checkout@v5
4345
with:
44-
ref: ${{ inputs.tag_name || github.ref_name }}
46+
ref: ${{ inputs.checkout_ref || github.ref_name }}
4547
- name: Create release archive and notes
4648
run: .github/workflows/create_archive_and_notes.sh ${{ inputs.tag_name || github.ref_name }}
4749
- name: Release

0 commit comments

Comments
 (0)