improve steps test coverage (#190) #362
This file contains 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 for GH Actions | |
on: pull_request | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' && contains( github.event.pull_request.labels.*.name, 'github_actions') }} | |
steps: | |
- name: Authenticate cli with a PAT | |
run: echo "${{ secrets.MERGE_TOKEN }}" | gh auth login --with-token | |
- name: Enable auto-merge for Dependabot GitHub Actions PRs | |
run: gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} |