Merge pull request #31 from furality/push_token
ci(auto-merge): use push-token
This commit is contained in:
commit
0ae24a93e2
1 changed files with 3 additions and 3 deletions
6
.github/workflows/auto-merge.yml
vendored
6
.github/workflows/auto-merge.yml
vendored
|
@ -18,16 +18,16 @@ jobs:
|
|||
id: dependabot-metadata
|
||||
uses: dependabot/fetch-metadata@v1.6.0
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
github-token: ${{ secrets.PUSH_TOKEN }}
|
||||
|
||||
- name: Approve Pull Request
|
||||
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
|
||||
run: gh pr review -R "${{ github.repository }}" --approve "${{ github.event.pull_request.number }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
|
||||
|
||||
- name: Enable auto-merge for Dependabot PRs
|
||||
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
|
||||
run: gh pr merge -R "${{ github.repository }}" --merge --auto "${{ github.event.pull_request.number }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue