Refactor to workflow call

This commit is contained in:
Eric Fennis
2023-07-17 21:12:03 +02:00
parent 062894e113
commit e1bc19be4e
2 changed files with 14 additions and 6 deletions

View File

@@ -10,8 +10,9 @@ on:
jobs:
create-release:
if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.new-version.outputs.NEW_VERSION }}
steps:
- uses: actions/checkout@v3
@@ -72,7 +73,6 @@ jobs:
env:
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
- name: Check output
run: |
echo '${{ steps.new-version.outputs.NEW_VERSION }}'
@@ -85,7 +85,9 @@ jobs:
name: New icons ${{ steps.new-version.outputs.NEW_VERSION }}
body: ${{ steps.change-log.outputs.CHANGE_LOG }}
- name: Release packages
uses: './.github/workflows/release.yml'
with:
version: ${{ steps.new-version.outputs.NEW_VERSION }}
start-release:
if: github.repository == 'lucide-icons/lucide'
needs: create-release
uses: './.github/workflows/release.yml'
with:
version: ${{ needs.create-release.outputs.VERSION }}

View File

@@ -5,6 +5,12 @@ on:
tags:
- 'v*'
workflow_call:
inputs:
version:
required: true
type: string
workflow_dispatch:
inputs:
version: