File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -234,8 +234,10 @@ jobs:
234
234
runs-on : ubuntu-latest
235
235
steps :
236
236
- name : Record approval
237
+ env :
238
+ APPROVER : ${{ github.actor }}
237
239
run : |
238
240
echo "RC Approval Record:"
239
241
echo "- Version: ${{ inputs.version }}"
240
242
echo "- Timestamp: $(date -u +"%Y-%m-%dT%H:%M:%SZ")"
241
- echo "- Approver: ${{ github.actor }} "
243
+ echo "- Approver: $APPROVER "
Original file line number Diff line number Diff line change 83
83
- uses : actions/checkout@v4
84
84
- name : Validate version
85
85
id : get-version
86
+ env :
87
+ VERSION : ${{ inputs.version || github.ref_name }}
86
88
run : |
87
- VERSION="${{ inputs.version || github.ref_name }}"
88
- if ! [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$ ]]; then
89
+ if ! [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$ ]]; then
89
90
echo "::error::Invalid version format. Must be vX.Y.Z or vX.Y.Z-rcN"
90
91
exit 1
91
92
fi
You can’t perform that action at this time.
0 commit comments