mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-29 12:00:13 +00:00
Use GITHUB_EVENT_PATH to parse inputs avoiding template context errors
This commit is contained in:
parent
f55863cf02
commit
8a32458609
1 changed files with 6 additions and 3 deletions
9
.github/workflows/create-release.yml
vendored
9
.github/workflows/create-release.yml
vendored
|
|
@ -31,7 +31,11 @@ jobs:
|
|||
TAG="${GITHUB_REF#refs/tags/}"
|
||||
VERSION="${TAG#v}"
|
||||
else
|
||||
VERSION="${{ github.event.inputs.version }}"
|
||||
VERSION=$(jq -r '.inputs.version // ""' "$GITHUB_EVENT_PATH" 2>/dev/null || echo "")
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "::error::workflow_dispatch must include a version input"
|
||||
exit 1
|
||||
fi
|
||||
TAG="v${VERSION}"
|
||||
fi
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
|
|
@ -322,10 +326,9 @@ jobs:
|
|||
|
||||
- name: Prepare release notes
|
||||
id: generate_notes
|
||||
env:
|
||||
RELEASE_NOTES_INPUT: ${{ github.event.inputs.release_notes || '' }}
|
||||
run: |
|
||||
VERSION="${{ needs.extract_version.outputs.version }}"
|
||||
RELEASE_NOTES_INPUT=$(jq -r '.inputs.release_notes // ""' "$GITHUB_EVENT_PATH" 2>/dev/null || echo "")
|
||||
|
||||
# Save release notes to file
|
||||
NOTES_FILE=$(mktemp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue