From db37c182d0db9e7a6b9ddadc0729c202a72b056a Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Thu, 15 Jul 2021 22:06:15 +0800 Subject: [PATCH] ci: Fix workflow not triggered correctly Signed-off-by: Xuanwo --- .github/workflows/auto-build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index c0a90c9..99a2272 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -24,12 +24,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 with: - ref: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.head_ref }} - name: Auto build run: make build - name: Auto commit - uses: EndBug/add-and-commit@v7 + uses: stefanzweifel/git-auto-commit-action@v4 with: - default_author: github_actions + commit_message: Auto build to generate code + token: ${{ secrets.ROBOT_GITHUB_TOKEN }}