chore(deps): bump the github-actions group with 2 updates #42
Workflow file for this run
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
| name: "Auto-merge PR" | |
| on: | |
| # zizmor: ignore[dangerous-triggers] This workflow is safe unless modified | |
| pull_request_target: | |
| permissions: | |
| {} | |
| jobs: | |
| merge: | |
| # dependabot-metadata fails on non-dependabot PRs, so this guard is still | |
| # necessary. | |
| if: | # zizmor: ignore[bot-conditions] | |
| github.actor == 'dependabot[bot]' | |
| && github.event.pull_request.user.login == 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read | |
| steps: | |
| - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3 | |
| id: generate-token | |
| with: | |
| app-id: ${{ secrets.CREATE_PR_APP_ID }} | |
| private-key: ${{ secrets.CREATE_PR_APP_PRIVATE_KEY }} | |
| permission-contents: write | |
| permission-pull-requests: write | |
| - name: Dependabot metadata | |
| id: dependabot-metadata | |
| uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3 | |
| with: | |
| github-token: ${{ github.token }} | |
| - name: Merge | |
| if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' | |
| run: | | |
| gh pr merge "$PR_URL" --delete-branch --squash --auto | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} |