Skip to content

Commit a1c9f70

Browse files
committed
Fix deprecation warning for github action
1 parent 2d64139 commit a1c9f70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/generate_release_pdf.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
curl -L -X PUT ${{ env.MIRROR_SITE_URL }}/${{ env.TYPST_FILE_NAME }}.pdf -F file=@${{ env.TYPST_FILE_NAME }}.pdf -F token=${{ env.MIRROR_SITE_TOKEN }}
7777
7878
- name: Delete old Release
79-
uses: actions/github-script@v5
79+
uses: actions/github-script@v7
8080
with:
8181
github-token: ${{ secrets.GITHUB_TOKEN }}
8282
script: |
@@ -89,11 +89,11 @@ jobs:
8989
- name: Generate release tag
9090
id: tag
9191
run: |
92-
echo "::set-output name=release_date::$(date +"%Y 年 %m 月 %d 日 %H 点 %M 分")"
93-
echo "::set-output name=release_tag::latest_$(date +"%Y-%m-%d_%H-%M")"
92+
echo "release_date=$(date +"%Y 年 %m 月 %d 日 %H 点 %M 分")" >> $GITHUB_OUTPUT
93+
echo "release_tag=latest_$(date +"%Y-%m-%d_%H-%M")" >> $GITHUB_OUTPUT
9494
9595
- name: Release
96-
uses: softprops/action-gh-release@v1
96+
uses: softprops/action-gh-release@v2
9797
with:
9898
name: 伟大,无需多言
9999
body: |

0 commit comments

Comments
 (0)