Skip to content

Commit 6ce3605

Browse files
committed
ci(workflow): 🚀 升级 GitHub Actions 工作流依赖版本
* 将 `actions/checkout` 从 v3 升级至 v6。 * 将 `actions/setup-python` 从 v4 升级至 v6,并将 Python 版本从 `3.7` 升级至 `3.12`。 * 将 `actions/cache` 从 v3 升级至 v5。
1 parent eae8745 commit 6ce3605

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v6
1515
with:
1616
submodules: recursive
1717
fetch-depth: 10
1818

1919
- name: Install Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v6
2121
with:
22-
python-version: '3.7'
22+
python-version: '3.12'
2323

2424
- name: Install OS dependencies
2525
run: |
@@ -33,7 +33,7 @@ jobs:
3333
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
3434
3535
- name: Cache dependencies
36-
uses: actions/cache@v3
36+
uses: actions/cache@v5
3737
with:
3838
path: ${{ steps.pip-cache.outputs.dir }}
3939
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
@@ -50,7 +50,7 @@ jobs:
5050
make latexpdf
5151
5252
- name: Checkout gh-pages
53-
uses: actions/checkout@v3
53+
uses: actions/checkout@v6
5454
with:
5555
repository: ${{ github.repository }}
5656
ref: gh-pages

0 commit comments

Comments
 (0)