From ed50d812e80a99691087d01e3333b34cc6225493 Mon Sep 17 00:00:00 2001 From: Dave Lang Date: Fri, 13 Dec 2024 14:11:35 +1000 Subject: [PATCH] Add manual trigger and version input to action (#21) --- .github/workflows/release.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e70d4d9..c0c1fd3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,15 @@ name: Package release on: # yamllint disable-line rule:truthy - push: - tags: - - "**" + # push: + # tags: + # - "**" + workflow_dispatch: + inputs: + tag: + description: Tag to create + required: true + type: string # Workflow jobs jobs: @@ -30,12 +36,14 @@ jobs: ./docker outPath: docker.wbm.gz + # Manual release # https://github.com/marketplace/actions/create-release - name: "Upload release" uses: ncipollo/release-action@v1 with: artifacts: "docker.wbm.gz" - tag: ${{ github.ref_name }} + tag: ${{ inputs.tag }} #${{ github.ref_name }} + commit: main prerelease: true draft: true generateReleaseNotes: true \ No newline at end of file