Skip to content

Commit 63469e9

Browse files
CopilotBoshen
andcommitted
Update workflow to trigger on main branch and use Boshen's git config
Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent 175d262 commit 63469e9

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/update-rolldown-stats.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
name: Update Rolldown Stats
22

33
on:
4-
pull_request:
5-
types: [opened, synchronize]
4+
push:
5+
branches: [main]
66
paths:
77
- 'apps/dashboard/**'
88

99
permissions:
1010
contents: write
11-
pull-requests: read
1211

1312
jobs:
1413
update-stats:
@@ -19,7 +18,6 @@ jobs:
1918
uses: actions/checkout@v5
2019
with:
2120
token: ${{ secrets.GITHUB_TOKEN }}
22-
ref: ${{ github.head_ref }}
2321
fetch-depth: 0
2422

2523
- name: Setup Node.js LTS
@@ -67,11 +65,11 @@ jobs:
6765
- name: Commit and push changes
6866
if: steps.git-check.outputs.changes == 'true'
6967
run: |
70-
git config --local user.email "action@github.com"
71-
git config --local user.name "GitHub Action"
68+
git config --local user.email "boshen@gmail.com"
69+
git config --local user.name "Boshen"
7270
git add rolldown-version-stats.json
7371
git commit -m "chore: update rolldown version stats"
74-
git push origin HEAD:${{ github.head_ref }}
72+
git push origin main
7573
7674
- name: No changes to commit
7775
if: steps.git-check.outputs.changes != 'true'

0 commit comments

Comments
 (0)