feat(trusted-companions): Plan trip with mobility profile for self or on behalf of trusted companion #1528
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-approve and enable auto-merge on dependabot PRs | |
on: pull_request_target | |
jobs: | |
auto-approve-and-automerge: | |
# sources: | |
# https://github.com/hmarr/auto-approve-action | |
# https://docs.github.com/en/[email protected]/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
if: github.actor == 'dependabot[bot]' | |
steps: | |
- name: Auto-approve PR | |
uses: hmarr/auto-approve-action@v3 | |
- name: Enable auto-merge | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |