We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 082bbad commit 1414a73Copy full SHA for 1414a73
1 file changed
.github/workflows/build-release.yaml
@@ -1,6 +1,8 @@
1
name: Build and Release
2
3
on:
4
+ repository_dispatch:
5
+ types: [release]
6
workflow_dispatch:
7
inputs:
8
version:
@@ -22,13 +24,19 @@ jobs:
22
24
- name: Determine version
23
25
id: version
26
run: |
- version="${{ inputs.version }}"
27
+ if [ -n "${{ inputs.version }}" ]; then
28
+ version="${{ inputs.version }}"
29
+ elif [ -n "${{ github.event.client_payload.version }}" ]; then
30
+ version="${{ github.event.client_payload.version }}"
31
+ else
32
+ echo "No version specified" && exit 1
33
+ fi
34
echo "version=${version}" >> "$GITHUB_OUTPUT"
35
echo "Releasing version: ${version}"
36
37
- uses: actions/checkout@v4
38
with:
- ref: ${{ inputs.version }}
39
+ ref: ${{ steps.version.outputs.version }}
40
fetch-depth: 0
41
42
- name: Set up QEMU
0 commit comments