diff options
author | Jan Raasch <425211+janraasch@users.noreply.github.com> | 2024-01-23 11:07:09 +0100 |
---|---|---|
committer | Jan Raasch <425211+janraasch@users.noreply.github.com> | 2024-01-23 11:07:09 +0100 |
commit | 4ce692eb8c6d213e98415c63ca6d34e28abd1715 (patch) | |
tree | 6a2c16c0e227abcce259a30a986ee3f603daa2bc | |
parent | fe522cefe3b4effe820cf6462a0661f83c63dbce (diff) | |
download | hugo-bearcub-4ce692eb8c6d213e98415c63ca6d34e28abd1715.tar.gz hugo-bearcub-4ce692eb8c6d213e98415c63ca6d34e28abd1715.tar.bz2 |
Approve & squash merge dependabot prs
See https://dev.to/lkurzyniec/github-auto-merge-dependabot-prs-26dj
-rw-r--r-- | .github/workflows/ci.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb46add..f6f5b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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}} |