We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7668fa commit f748a6dCopy full SHA for f748a6d
.github/workflows/release.yml
@@ -1,6 +1,9 @@
1
name: release
2
3
on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
workflow_dispatch:
8
inputs:
9
tag:
@@ -52,7 +55,7 @@ jobs:
52
55
fetch-depth: 0
53
56
54
57
- name: Checkout tag (manual input)
- if: ${{ github.event.inputs.tag != '' }}
58
+ if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' }}
59
shell: bash
60
run: |
61
set -euxo pipefail
@@ -377,7 +380,7 @@ jobs:
377
380
378
381
379
382
- if [ -n "${{ github.event.inputs.tag }}" ]; then
383
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ -n "${{ github.event.inputs.tag }}" ]; then
384
echo "tag=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
385
else
386
echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
0 commit comments