Skip to content

Commit 57e7f38

Browse files
committed
new index
1 parent 25a44f6 commit 57e7f38

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ on:
1111

1212
jobs:
1313
build-deploy:
14+
permissions:
15+
contents: write
1416
runs-on: ubuntu-latest
1517
if: "!contains(github.event.head_commit.message, 'skip ci')"
1618
steps:
1719
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # required so the deploy action can push
1822
- uses: actions/setup-node@v4
1923
with:
2024
node-version: '20'

.github/workflows/sync-ranking-data-by-month.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ on:
88

99
jobs:
1010
run-scripts:
11+
permissions:
12+
contents: write
1113
runs-on: ubuntu-latest
1214

1315
steps:
1416
- name: Checkout repository
1517
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # ensure history for pushing changes
1620

1721
- name: Set up Node.js
1822
uses: actions/setup-node@v4
@@ -39,6 +43,9 @@ jobs:
3943
git config --local user.email "[email protected]"
4044
git config --local user.name "GitHub Action"
4145
git add .
46+
if git diff --cached --quiet; then
47+
echo "No changes to commit" && exit 0
48+
fi
4249
git commit -m "chore: Automated data update from scripts"
4350
git push origin main
4451
env:

0 commit comments

Comments
 (0)