Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CookSleep authored Aug 4, 2024
1 parent cc6018c commit 06a12a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
```
Expand Down

0 comments on commit 06a12a9

Please sign in to comment.