Skip to content

feat(http): add option to retry only unprocessed mutations #1854

feat(http): add option to retry only unprocessed mutations

feat(http): add option to retry only unprocessed mutations #1854

name: Auto-merge dependabot updates
on:
pull_request:
branches: [ main ]
permissions:
pull-requests: read
contents: read
jobs:
dependabot-merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Generate GitHub App token
id: app-token
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_CLIENT_ID }}
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
permission-contents: write
permission-pull-requests: write
- name: Enable auto-merge for Dependabot PRs
# Only if version bump is not a major version change
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ steps.app-token.outputs.token }}