Skip to content

Commit 0b6b179

Browse files
committed
ci: allow creating tags on manually
1 parent 065eff9 commit 0b6b179

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/create-tag.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ on:
44
pull_request:
55
types:
66
- closed
7-
7+
workflow_dispatch:
8+
inputs:
9+
commit:
10+
description: 'Commit hash'
11+
required: true
12+
type: string
813
jobs:
914
create-tag:
1015
if: >-
16+
(inputs.commit || false)
1117
github.event.pull_request.merged == true &&
1218
github.event.pull_request.user.login == 'github-actions' &&
1319
github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name &&
@@ -16,6 +22,8 @@ jobs:
1622
steps:
1723
- name: Checkout code
1824
uses: actions/checkout@v4
25+
with:
26+
ref: ${{ inputs.commit || '' }}
1927

2028
- name: Install rust toolchain
2129
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)