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 }}