Skip to content

Commit 1c0a646

Browse files
committed
fix release workflow bump parsing for push and manual triggers
1 parent 3c8724f commit 1c0a646

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ jobs:
4040
- name: Bump version
4141
id: bump
4242
shell: bash
43-
env:
44-
BUMP_TYPE: ${{ github.event.inputs.bump || 'patch' }}
4543
run: |
4644
set -euo pipefail
4745
46+
bump_type="$(jq -r '.inputs.bump // "patch"' "$GITHUB_EVENT_PATH")"
47+
4848
current="$(cat VERSION 2>/dev/null || echo "0.1.0")"
4949
IFS='.' read -r major minor patch <<< "$current"
5050
51-
case "$BUMP_TYPE" in
51+
case "$bump_type" in
5252
major)
5353
major=$((major + 1))
5454
minor=0

0 commit comments

Comments
 (0)