Skip to content

Commit 8f15ebf

Browse files
committed
ci: add workflow_dispatch to plugin build workflow
1 parent 971369f commit 8f15ebf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-plugin.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Build Plugin
33
on:
44
push:
55
tags: ["plugin-*-v*"]
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "Plugin tag to build (e.g., plugin-oracle-v1.0.1)"
10+
required: true
11+
type: string
612

713
permissions:
814
contents: write
@@ -20,7 +26,7 @@ jobs:
2026
- name: Extract plugin info from tag
2127
id: plugin-info
2228
run: |
23-
TAG="${GITHUB_REF#refs/tags/}"
29+
TAG="${{ inputs.tag || github.ref_name }}"
2430
# Tag format: plugin-<name>-v<version>
2531
# e.g., plugin-oracle-v1.0.0 -> OracleDriverPlugin
2632
PLUGIN_NAME=$(echo "$TAG" | sed -E 's/^plugin-([a-z]+)-v.*$/\1/')
@@ -145,7 +151,7 @@ jobs:
145151
env:
146152
REGISTRY_DEPLOY_KEY: ${{ secrets.REGISTRY_DEPLOY_KEY }}
147153
run: |
148-
TAG="${GITHUB_REF#refs/tags/}"
154+
TAG="${{ inputs.tag || github.ref_name }}"
149155
150156
ARM64_URL="https://github.com/${{ github.repository }}/releases/download/${TAG}/${{ steps.plugin-info.outputs.bundle_name }}-arm64.zip"
151157
X86_64_URL="https://github.com/${{ github.repository }}/releases/download/${TAG}/${{ steps.plugin-info.outputs.bundle_name }}-x86_64.zip"

0 commit comments

Comments
 (0)