Skip to content

Commit 7fc0c7b

Browse files
committed
set timezone to UTC-8
1 parent 86daa19 commit 7fc0c7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish-github-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
2020
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs > constants.env
2121
# git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs > constants.env
22-
d=$(date +'%y%m%d%H%M%S')
22+
d=$(TZ=UTC-8 date +'%y%m%d%H%M%S')
2323
grep IJK_VERSION= version.sh | awk -v d="$d" -F = '{printf "RELEASE_VERSION=%s-%s",$2,d}' | xargs > constants.env
2424
echo 'EDITION=github' >> constants.env
2525
cat constants.env

.github/workflows/publish-ijk-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
2020
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs > constants.env
2121
# git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs > constants.env
22-
d=$(date +'%y%m%d%H%M%S')
22+
d=$(TZ=UTC-8 date +'%y%m%d%H%M%S')
2323
grep IJK_VERSION= version.sh | awk -v d="$d" -F = '{printf "RELEASE_VERSION=%s-%s",$2,d}' | xargs > constants.env
2424
echo 'EDITION=ijk' >> constants.env
2525
cat constants.env

0 commit comments

Comments
 (0)