Skip to content

Commit 1bab57d

Browse files
committed
fix: simplify release trigger to workflow_dispatch only
1 parent d0e9a9d commit 1bab57d

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/release-build.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- '*'
74
workflow_dispatch:
85
inputs:
96
version:
107
description: 'Version to release (tag name)'
118
required: true
9+
type: string
1210

1311
permissions:
1412
contents: write
@@ -24,17 +22,13 @@ jobs:
2422
- name: Determine version
2523
id: version
2624
run: |
27-
if [ -n "${{ inputs.version }}" ]; then
28-
version="${{ inputs.version }}"
29-
else
30-
version="${GITHUB_REF_NAME}"
31-
fi
25+
version="${{ inputs.version }}"
3226
echo "version=${version}" >> "$GITHUB_OUTPUT"
3327
echo "Releasing version: ${version}"
3428
3529
- uses: actions/checkout@v4
3630
with:
37-
ref: ${{ steps.version.outputs.version }}
31+
ref: ${{ inputs.version }}
3832
fetch-depth: 0
3933

4034
- name: Set up QEMU

0 commit comments

Comments
 (0)