Skip to content

Commit 3566913

Browse files
authored
Merge branch 'doocs:main' into main
2 parents de9d1cc + d8d7eb3 commit 3566913

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
git config user.name github-actions[bot]
2929
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
3030
31-
- uses: actions/setup-python@v4
31+
- uses: actions/setup-python@v5
3232
with:
3333
python-version: 3.x
3434

3535
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
3636

37-
- uses: actions/cache@v3
37+
- uses: actions/cache@v4
3838
with:
3939
key: mkdocs-material-${{ env.cache_id }}
4040
path: .cache
@@ -59,6 +59,11 @@ jobs:
5959
github_token: ${{ secrets.GITHUB_TOKEN }}
6060
publish_dir: ./site
6161

62+
sync:
63+
runs-on: ubuntu-latest
64+
needs: deploy
65+
if: github.repository == 'doocs/leetcode'
66+
steps:
6267
- name: Sync to gitee.com
6368
uses: wearerequired/git-mirror-action@master
6469
env:
@@ -73,4 +78,4 @@ jobs:
7378
gitee-username: yanglbme
7479
gitee-password: ${{ secrets.GITEE_PASSWORD }}
7580
gitee-repo: doocs/leetcode
76-
branch: gh-pages
81+
branch: gh-pages

.github/workflows/prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
ref: ${{ github.head_ref }}
1818
fetch-depth: 0
1919
- name: Set up Node.js
20-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: 18
2323
- name: Install Dependencies

0 commit comments

Comments
 (0)