Fix workflow inputs context for push events
This commit is contained in:
parent
a8b6143408
commit
f1303cf339
1 changed files with 2 additions and 2 deletions
4
.github/workflows/create-release.yml
vendored
4
.github/workflows/create-release.yml
vendored
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
TAG="${GITHUB_REF#refs/tags/}"
|
||||
VERSION="${TAG#v}"
|
||||
else
|
||||
VERSION="${{ inputs.version }}"
|
||||
VERSION="${{ github.event.inputs.version }}"
|
||||
TAG="v${VERSION}"
|
||||
fi
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
|
|
@ -323,7 +323,7 @@ jobs:
|
|||
- name: Prepare release notes
|
||||
id: generate_notes
|
||||
env:
|
||||
RELEASE_NOTES_INPUT: ${{ inputs.release_notes }}
|
||||
RELEASE_NOTES_INPUT: ${{ github.event.inputs.release_notes || '' }}
|
||||
run: |
|
||||
VERSION="${{ needs.extract_version.outputs.version }}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue