github: add workaround for yarn v2+ and dependabot

dependabot only supports yarn v1, so updates are broken
This commit is contained in:
David Lechner
2022-06-01 14:08:08 -05:00
committed by David Lechner
parent e43610f6ae
commit 35b60be7d7
2 changed files with 66 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --rebase "$PR_URL"
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}