Skip to content

Commit

Permalink
Merge pull request #1002 from statisticsnorway/MIM-1889_setup_auto_mi…
Browse files Browse the repository at this point in the history
…nor_merge

Setup auto minor version dependency bump
  • Loading branch information
johnnadeluy authored Apr 17, 2024
2 parents 446c2d8 + e334b1f commit 1222a88
Show file tree
Hide file tree
Showing 3 changed files with 1,568 additions and 1,474 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Dependabot auto-merge patch
on: pull_request_target

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: approve
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr review --approve "$PR_URL"
- name: merge
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --squash "$PR_URL"
Loading

0 comments on commit 1222a88

Please sign in to comment.