From cf19731e6a6b07da529fadbd3a23d77e6244ac1a Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Sun, 23 May 2021 13:42:07 +0200 Subject: [PATCH] Add custom dispatch --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d4142bfd..3c2891a9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,12 @@ on: tags: - 'v*' + workflow_dispatch: + inputs: + version: + description: 'Version' + required: true + jobs: pre-build: if: github.repository == 'lucide-icons/lucide' @@ -15,9 +21,15 @@ jobs: steps: - name: Get the version + if: ${{ github.ref == 'refs/tags/*' }} id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/\v} + - name: Get the version + if: ${{ github.event.inputs.version }} + id: get_version + run: echo ::set-output name=VERSION::${{ github.event.inputs.version }} + - name: Get yarn cache directory path id: yarn_cache run: echo "::set-output name=YARN_CACHE_DIR::$(yarn cache dir)"