workflows

This commit is contained in:
Pouya Saadeghi 2023-11-28 20:47:50 +03:30
parent 7248591f54
commit 742c50a3a9
2 changed files with 7 additions and 2 deletions

View File

@ -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 }}

View File

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