diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2098241c..cae6e67f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18fd5f830..93acb01db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,12 @@ on: tags: - 'v*' + workflow_call: + inputs: + version: + required: true + type: string + workflow_dispatch: inputs: version: