Skip to content

Commit a35ceb1

Browse files
committed
add sudo fix tz
1 parent fd69419 commit a35ceb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/generate_release_pdf.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
7373
- name: Install Fonts
7474
run: |
75-
apt-get install -yq --allow-unauthenticated ttf-mscorefonts-installer
76-
apt-get install -yyq fonts-liberation
75+
sudo apt-get install -yq --allow-unauthenticated ttf-mscorefonts-installer
76+
sudo apt-get install -yyq fonts-liberation
7777
7878
- name: Prepare Puppeteer environment
7979
run: |
@@ -108,7 +108,7 @@ jobs:
108108
- name: Generate release tag
109109
id: tag
110110
run: |
111-
echo "release_date=$(date +"%Y 年 %m 月 %d 日 %H 点 %M 分")" >> $GITHUB_OUTPUT
111+
echo "release_date=$(TZ=Asia/Shanghai date +"%Y 年 %m 月 %d 日 %H 点 %M 分")" >> $GITHUB_OUTPUT
112112
echo "release_tag=latest_$(date +"%Y-%m-%d_%H-%M")" >> $GITHUB_OUTPUT
113113
114114
- name: Release

0 commit comments

Comments
 (0)