Skip to content

Commit

Permalink
Approve & squash merge dependabot prs
Browse files Browse the repository at this point in the history
  • Loading branch information
janraasch committed Jan 23, 2024
1 parent fe522ce commit 4ce692e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:

- name: Build local ./exampleSite
run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://janraasch.github.io/hugo-bearblog/

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: build
path: ./public

dependabot:
name: Dependabot Auto-Merge
needs: build
Expand All @@ -44,7 +44,9 @@ jobs:
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"
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit 4ce692e

Please sign in to comment.