Approve & squash merge dependabot prs
See https://dev.to/lkurzyniec/github-auto-merge-dependabot-prs-26dj
This commit is contained in:
parent
fe522cefe3
commit
4ce692eb8c
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -24,13 +24,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Build local ./exampleSite
|
- name: Build local ./exampleSite
|
||||||
run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://janraasch.github.io/hugo-bearblog/
|
run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://janraasch.github.io/hugo-bearblog/
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
path: ./public
|
path: ./public
|
||||||
|
|
||||||
dependabot:
|
dependabot:
|
||||||
name: Dependabot Auto-Merge
|
name: Dependabot Auto-Merge
|
||||||
needs: build
|
needs: build
|
||||||
@ -44,7 +44,9 @@ jobs:
|
|||||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
- name: Enable auto-merge for Dependabot PRs
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
if: contains(fromJSON('["version-update:semver-patch", "version-update:semver-minor"]'), steps.dependabot-metadata.outputs.update-type)
|
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:
|
env:
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user