Skip to content

Commit

Permalink
Changes to to dependabot flow
Browse files Browse the repository at this point in the history
  • Loading branch information
larskristianhaga committed Mar 25, 2024
1 parent 7ed976f commit 57b546c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
name: "Auto Merge Dependabot PR's"

on:
pull_request:
branches:
- main
types: [ opened, synchronize ]
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
merge-dependabot-pr:
name: "Approve and merge Dependabot PR"
approve-and-merge-pr:
name: "Approve and merge Depentabot PR"
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Get dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: "Log PR title"
run: echo "PR title is ${{ github.event.pull_request.title }}"
Expand Down

0 comments on commit 57b546c

Please sign in to comment.