File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 paths :
99 - ' docs/CHANGELOG.md'
1010
11+ # When triggered manually, make sure that CHANGELOG.md contains the set version
12+ workflow_dispatch :
13+ inputs :
14+ release_version :
15+ description : ' Version to release (e.g., v1.0.0)'
16+ required : false
17+
1118jobs :
1219 release :
1320 runs-on : ubuntu-latest
2027 - name : Parse commit message to get version
2128 id : parse_commit
2229 run : |
30+ # If the workflow is triggered manually, use the provided version if available
31+ if [[ -n "${{ github.event.inputs.release_version }}" ]]; then
32+ VERSION="${{ github.event.inputs.release_version }}"
33+ echo "RELEASE_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
34+ exit 0
35+ fi
36+
2337 # Commit message must be in the format of
2438 # "chore: release vX.X"
2539 VERSION=$(echo "$COMMIT_MESSAGE" | grep -oP '^chore:\ release\ v[a-zA-Z0-9.\-\+]+' | head -n 1 | cut -d' ' -f3)
You can’t perform that action at this time.
0 commit comments