mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-29 01:27:26 +01:00
Add custom dispatch
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user