chore(ci): auto-merge patch and minor updates of deps
This commit is contained in:
parent
7620f8d1f7
commit
63484fa54a
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user