From 06a12a9380fbe2cb295bfd4dd970f50e5b887452 Mon Sep 17 00:00:00 2001 From: CookSleep <151028412+CookSleep@users.noreply.github.com> Date: Sun, 4 Aug 2024 21:38:45 +0800 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4fc03b..3ddada4 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,16 @@ on: permissions: contents: write +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true # 强制使用 Node20 + jobs: update-exchange-rate: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # 使用 v3 - name: Install dependencies run: | @@ -80,7 +83,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add exchange_rate.json - git commit -m "Update exchange rate" + git diff-index --quiet HEAD || git commit -m "Update exchange rate" git push origin HEAD:main ```