From f6a76dcfd4aa2e5c110d075d1b5a5ab3f7d8bf9f Mon Sep 17 00:00:00 2001 From: rordaz Date: Sat, 27 Jun 2026 12:26:32 -0500 Subject: [PATCH] feat: enhance GitHub Actions workflow to support manual version tagging --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b4d5a1..d0e1b04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,11 @@ name: Release Obsidian Plugin on: + workflow_dispatch: + inputs: + tag: + description: "Tag to release (e.g. 1.1.3)" + required: true push: tags: - "[0-9]+.[0-9]+.[0-9]+" @@ -30,7 +35,12 @@ jobs: - name: Get version from tag id: version - run: echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT + run: | + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + echo "version=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT + else + echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT + fi - name: Extract release notes run: |