Skip to content

Commit 7ff0756

Browse files
authored
Update version extraction to use two-digit year
Change date format to use two-digit year in versioning.
1 parent bdca050 commit 7ff0756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
id: version_info
3232
run: |
3333
PR_NUMBER=${{ github.event.pull_request.number }}
34-
YEAR=$(date +'%Y')
34+
YEAR=$(date +'%y') # 使用兩位數年份
3535
VERSION="${YEAR}.${PR_NUMBER}.0"
3636
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
3737
echo "Target Version: $VERSION"
@@ -60,4 +60,4 @@ jobs:
6060
PR_NUMBER=${{ github.event.pull_request.number }}
6161
YEAR=$(date +'%Y')
6262
COMMENT_BODY="Tagged version ${YEAR}.${PR_NUMBER}.0"
63-
gh pr comment $PR_NUMBER --body "$COMMENT_BODY"
63+
gh pr comment $PR_NUMBER --body "$COMMENT_BODY"

0 commit comments

Comments
 (0)