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:
234234 runs-on : ubuntu-latest
235235 steps :
236236 - name : Record approval
237+ env :
238+ APPROVER : ${{ github.actor }}
237239 run : |
238240 echo "RC Approval Record:"
239241 echo "- Version: ${{ inputs.version }}"
240242 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 8383 - uses : actions/checkout@v4
8484 - name : Validate version
8585 id : get-version
86+ env :
87+ VERSION : ${{ inputs.version || github.ref_name }}
8688 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
8990 echo "::error::Invalid version format. Must be vX.Y.Z or vX.Y.Z-rcN"
9091 exit 1
9192 fi
You can’t perform that action at this time.
0 commit comments