aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Raasch <425211+janraasch@users.noreply.github.com>2023-03-08 19:03:20 +0100
committerJan Raasch <425211+janraasch@users.noreply.github.com>2023-03-08 19:03:20 +0100
commit63484fa54a06f0f0ee44eb13d96274409935633b (patch)
tree88a9bc7a713568d9437523e4a135cae69225c460
parent7620f8d1f7253115713a4e3032e053ba1fa84fd8 (diff)
downloadhugo-bearcub-63484fa54a06f0f0ee44eb13d96274409935633b.tar.gz
hugo-bearcub-63484fa54a06f0f0ee44eb13d96274409935633b.tar.bz2
chore(ci): auto-merge patch and minor updates of deps
-rw-r--r--.github/workflows/ci.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ed434f6..8f203bc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -30,6 +30,24 @@ jobs:
with:
name: build
path: ./public
+
+ dependabot:
+ name: Dependabot Auto-Merge
+ needs: build
+ runs-on: ubuntu-latest
+ if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
+ steps:
+ - name: Dependabot metadata
+ id: dependabot-metadata
+ uses: dependabot/fetch-metadata@v1
+ with:
+ github-token: '${{ secrets.GITHUB_TOKEN }}'
+ - name: Enable auto-merge for Dependabot PRs
+ if: contains(fromJSON('["version-update:semver-patch", "version-update:semver-minor"]'), steps.dependabot-metadata.outputs.update-type)
+ run: gh pr merge --auto --merge "$PR_URL"
+ env:
+ PR_URL: ${{github.event.pull_request.html_url}}
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
deploy:
needs: build