chore: app review workflow works for forked branches[INTEG-2165] #7748
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: "dependabot approve-and-request-merge" | |
on: pull_request_target | |
jobs: | |
worker: | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' | |
steps: | |
- name: Fetch Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Auto-merge dependabot PRs | |
uses: contentful/github-auto-merge@v2 | |
# Don't auto-merge major version upgrades, we'll handle these manually | |
if: ${{steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'}} | |
with: | |
VAULT_URL: ${{ secrets.VAULT_URL }} |