We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c8724f commit 1c0a646Copy full SHA for 1c0a646
1 file changed
.github/workflows/release.yml
@@ -40,15 +40,15 @@ jobs:
40
- name: Bump version
41
id: bump
42
shell: bash
43
- env:
44
- BUMP_TYPE: ${{ github.event.inputs.bump || 'patch' }}
45
run: |
46
set -euo pipefail
47
+ bump_type="$(jq -r '.inputs.bump // "patch"' "$GITHUB_EVENT_PATH")"
+
48
current="$(cat VERSION 2>/dev/null || echo "0.1.0")"
49
IFS='.' read -r major minor patch <<< "$current"
50
51
- case "$BUMP_TYPE" in
+ case "$bump_type" in
52
major)
53
major=$((major + 1))
54
minor=0
0 commit comments