workflows
This commit is contained in:
parent
7248591f54
commit
742c50a3a9
|
@ -123,6 +123,8 @@ jobs:
|
|||
write-release-notes:
|
||||
name: 📝 Release notes
|
||||
if: github.repository == 'saadeghi/daisyui'
|
||||
needs: run-tests
|
||||
needs: build-publish
|
||||
uses: ./.github/workflows/write-release-notes.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
daisyuiversion: ${{ needs.build-publish.outputs.daisyuiversion }}
|
||||
|
|
|
@ -2,6 +2,9 @@ name: "📝 write release notes"
|
|||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
daisyuiversion:
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
write-release-notes:
|
||||
|
@ -17,7 +20,7 @@ jobs:
|
|||
- name: Read package version from package.json
|
||||
id: package-version
|
||||
run: |
|
||||
version=$(grep -o '"version": *"[^"]*"' package.json | cut -d'"' -f4)
|
||||
version=${{ github.event.inputs.daisyuiversion }}
|
||||
echo version=$version >> $GITHUB_OUTPUT
|
||||
if [[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
echo $version is a stable version
|
||||
|
|
Loading…
Reference in New Issue