Skip to content

Commit f748a6d

Browse files
v1.34.1: restore release workflow (auto + manual) (#260)
1 parent c7668fa commit f748a6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: release
22

33
on:
4+
push:
5+
tags:
6+
- "v*"
47
workflow_dispatch:
58
inputs:
69
tag:
@@ -52,7 +55,7 @@ jobs:
5255
fetch-depth: 0
5356

5457
- name: Checkout tag (manual input)
55-
if: ${{ github.event.inputs.tag != '' }}
58+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' }}
5659
shell: bash
5760
run: |
5861
set -euxo pipefail
@@ -377,7 +380,7 @@ jobs:
377380
shell: bash
378381
run: |
379382
set -euxo pipefail
380-
if [ -n "${{ github.event.inputs.tag }}" ]; then
383+
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ -n "${{ github.event.inputs.tag }}" ]; then
381384
echo "tag=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
382385
else
383386
echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)