File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- pull_request_target :
7+ pull_request :
88
99jobs :
1010 type-check :
3131 steps :
3232 - name : Checkout
3333 uses : actions/checkout@v3
34- with :
35- token : ${{ github.token }}
3634
3735 - name : npm install
3836 run : npm install
4240
4341 - name : Format Check
4442 run : node ./tools/index.js
43+
44+ - name : Push changes # push the output folder to your repo
45+ uses : ad-m/github-push-action@master
46+ with :
47+ github_token : ${{ secrets.GITHUB_TOKEN }}
48+ force : true
Original file line number Diff line number Diff line change @@ -16,12 +16,11 @@ function pushCommitGit (packages: string[]) {
1616 ] ;
1717 const commands = [
1818 "git --version" ,
19- 'git config user.email "[email protected] "' , 20- 'git config user.name "github-actions"' ,
19+ 'git config --local user.email "[email protected] "' , 20+ 'git config --local user.name "github-actions"' ,
21+ "git add ./scripts" ,
2122 "git status" ,
22- "git add scripts" ,
2323 `git commit -m ${ JSON . stringify ( title ) } -m ${ JSON . stringify ( description . join ( '\n' ) ) } ` ,
24- "git push origin HEAD:" + process . env . REF ,
2524 ] ;
2625
2726 for ( const cmd of commands ) {
You can’t perform that action at this time.
0 commit comments