Add custom dispatch

This commit is contained in:
Eric Fennis
2021-05-23 13:42:07 +02:00
parent f86a6a960b
commit cf19731e6a

View File

@@ -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)"