File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [main]
66 workflow_dispatch :
77
8+ permissions :
9+ contents : write
10+
811jobs :
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
You can’t perform that action at this time.
0 commit comments