Skip to content

Commit e9084ab

Browse files
author
Vic-Nas
committed
Fixed typo
1 parent 679a534 commit e9084ab

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build-index.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ on:
55
branches: [main]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v4
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
fetch-depth: 0
1319

1420
- name: Generate data.json
1521
run: |
@@ -94,14 +100,13 @@ jobs:
94100
95101
- name: Commit and push if changed
96102
run: |
97-
git config user.name 'github-actions[bot]'
98-
git config user.email 'github-actions[bot]@users.noreply.github.com'
103+
git config --local user.name "Vic-Nas"
104+
git config --local user.email "github-actions@github.com"
99105
git add data.json
100106
101107
if git diff --staged --quiet; then
102108
echo "No changes to data.json"
103109
else
104110
git commit -m "🤖 Auto-generate data.json [skip ci]"
105111
git push
106-
env:
107-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
fi

0 commit comments

Comments
 (0)