Sha256: e858cc2fc37c01c2b55b3467df9d657064ca0ba06b820cc1ee61bdb9e7caee0e

Contents?: true

Size: 1.12 KB

Versions: 7

Compression:

Stored size: 1.12 KB

Contents

name: Merge dependabot PRs automatically
on: pull_request_target

permissions:
  pull-requests: write
  contents: write

env:
  blocker_files: rbs.gemspec Gemfile steep/Gemfile

jobs:
  dependabot:
    runs-on: ubuntu-latest
    if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
    steps:
      - name: Dependabot metadata
        uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
        id: metadata
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Abort if blocker files are changed
        run: git diff --exit-code ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} ${{ env.blocker_files }}
      - name: Enable auto-merge for Dependabot PRs
        run: gh pr merge --auto --merge "$PR_URL"
        if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
        env:
          PR_URL: ${{github.event.pull_request.html_url}}
          GH_TOKEN: ${{secrets.DEPENDABOT_MERGE_GH_TOKEN}}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rbs-3.7.0.dev.1 .github/workflows/dependabot.yml
rbs-3.6.1 .github/workflows/dependabot.yml
rbs-3.6.0 .github/workflows/dependabot.yml
rbs-3.6.0.pre.3 .github/workflows/dependabot.yml
rbs-3.6.0.pre.2 .github/workflows/dependabot.yml
rbs-3.6.0.pre.1 .github/workflows/dependabot.yml
rbs-3.6.0.dev.1 .github/workflows/dependabot.yml