Skip to content

Commit eb34c85

Browse files
committed
Sync cpp to main
1 parent 2afecc5 commit eb34c85

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/sync.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,24 @@ on:
55
branches:
66
- cpp
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
sync:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v3
1316
with:
1417
fetch-depth: 0
18+
persist-credentials: true
1519

1620
- name: Merge cpp into main
1721
run: |
18-
git config user.name "github-actions"
19-
git config user.email "actions@github.com"
22+
git config user.name "github-actions[bot]"
23+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
24+
25+
git fetch origin
2026
git checkout main
2127
git merge origin/cpp --no-edit
2228
git push origin main

0 commit comments

Comments
 (0)