Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 2a80f63

Browse files
committed
ci: Fix auto build not work correctly
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 40e4da6 commit 2a80f63

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/auto-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Dependabot auto build
1+
name: Dependabot Auto Build
22
on: pull_request_target
33

44
permissions:
@@ -24,12 +24,13 @@ jobs:
2424
- name: Checkout repository
2525
uses: actions/checkout@v2
2626
with:
27-
ref: ${{ github.event.pull_request.head.sha }}
27+
ref: ${{ github.head_ref }}
28+
token: ${{ secrets.ROBOT_GITHUB_TOKEN }}
2829

2930
- name: Auto build
3031
run: make build
3132

3233
- name: Auto commit
33-
uses: EndBug/add-and-commit@v7
34+
uses: stefanzweifel/git-auto-commit-action@v4
3435
with:
35-
default_author: github_actions
36+
commit_message: Auto build to generate code

0 commit comments

Comments
 (0)