Skip to content

Commit 1414a73

Browse files
committed
fix: add repository_dispatch trigger as workaround
1 parent 082bbad commit 1414a73

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build and Release
22

33
on:
4+
repository_dispatch:
5+
types: [release]
46
workflow_dispatch:
57
inputs:
68
version:
@@ -22,13 +24,19 @@ jobs:
2224
- name: Determine version
2325
id: version
2426
run: |
25-
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
2634
echo "version=${version}" >> "$GITHUB_OUTPUT"
2735
echo "Releasing version: ${version}"
2836
2937
- uses: actions/checkout@v4
3038
with:
31-
ref: ${{ inputs.version }}
39+
ref: ${{ steps.version.outputs.version }}
3240
fetch-depth: 0
3341

3442
- name: Set up QEMU

0 commit comments

Comments
 (0)