Skip to content

Commit 26fed92

Browse files
committed
pull r
1 parent 2df4b1c commit 26fed92

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/cl.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request_target:
7+
pull_request:
88

99
jobs:
1010
type-check:
@@ -31,8 +31,6 @@ jobs:
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
@@ -42,3 +40,9 @@ jobs:
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

tools/packageReadme.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)