name: Dependabot Rebuild on: pull_request_target: types: [opened, synchronize] permissions: contents: write pull-requests: read jobs: build: if: ${{ github.actor == 'dependabot[bot]' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - name: rebuild run: | git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git config user.name github-actions git config user.email github-actions@github.com make build git add -A git commit -m "[dependabot skip] build" || true git push -u origin HEAD:${{ github.event.pull_request.head.ref }}