refactor: add Makefile variables for both source and binary distributions, and simplify rules a bit using these variables #579
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Automatically merge Dependabot PRs upon approval. | |
| # https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/automating-dependabot-with-github-actions#enabling-automerge-on-a-pull-request | |
| name: Automerge Dependabot PR | |
| on: | |
| pull_request_review: | |
| types: [submitted] | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| auto-merge: | |
| if: ${{ github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Merge Dependabot PR | |
| run: | | |
| BODY=$(gh pr view --json commits --jq .commits[0].messageBody "$PR_URL" | grep Signed-off-by) | |
| gh pr merge --squash --delete-branch --body "$BODY" "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }} |