Skip to content

Commit

Permalink
Merge pull request #73 from sakan811/sakan811-patch-1
Browse files Browse the repository at this point in the history
Update dependabot-auto.yml
  • Loading branch information
sakan811 authored Nov 19, 2024
2 parents 1d9c51d + 3aa58fe commit b5eef24
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/dependabot-auto.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
name: Dependabot auto-merge
on: pull_request
name: Dependabot Auto-Merge
on:
pull_request:
types: [opened]

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
auto_merge_dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo'
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: contains(steps.metadata.outputs.dependency-names, 'aioresponses') && steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --merge "$PR_URL"
- name: Auto-merge Dependabot PRs
run: gh pr merge --auto --merge "${{ github.event.pull_request.html_url }}"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b5eef24

Please sign in to comment.