From 739d1a1d4e23acf6b04554de5a5fda6b07da3bcc Mon Sep 17 00:00:00 2001 From: rcourtman Date: Thu, 13 Nov 2025 12:21:11 +0000 Subject: [PATCH] Add workflow_dispatch fallback for tag-triggered releases GitHub Actions has a known issue where tag pushes sometimes don't trigger workflows. Add workflow_dispatch as a backup trigger that accepts a tag parameter. This allows manual triggering if automatic tag push trigger fails. --- .github/workflows/release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ddeaa3..f54a25f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,12 @@ on: push: tags: - 'v*.*.*' + workflow_dispatch: + inputs: + tag: + description: 'Tag to release (e.g., v4.30.0) - only needed if tag push didnt trigger automatically' + required: true + type: string jobs: extract-version: @@ -16,7 +22,13 @@ jobs: - name: Extract version from tag id: extract run: | - TAG="${GITHUB_REF#refs/tags/}" + # Handle both tag push and manual dispatch + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + TAG="${{ inputs.tag }}" + else + TAG="${GITHUB_REF#refs/tags/}" + fi + VERSION="${TAG#v}" echo "tag=${TAG}" >> $GITHUB_OUTPUT echo "version=${VERSION}" >> $GITHUB_OUTPUT