ci(auto-merge): use push-token

Use push-token
This commit is contained in:
Conicaw 2023-07-24 19:26:39 -05:00
parent db052da7b1
commit 81c7169270
No known key found for this signature in database
GPG key ID: 8DE10AC00159C418

View file

@ -18,16 +18,16 @@ jobs:
id: dependabot-metadata id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.6.0 uses: dependabot/fetch-metadata@v1.6.0
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.PUSH_TOKEN }}
- name: Approve Pull Request - name: Approve Pull Request
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr review -R "${{ github.repository }}" --approve "${{ github.event.pull_request.number }}" run: gh pr review -R "${{ github.repository }}" --approve "${{ github.event.pull_request.number }}"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
- name: Enable auto-merge for Dependabot PRs - name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} 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 }}" run: gh pr merge -R "${{ github.repository }}" --merge --auto "${{ github.event.pull_request.number }}"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}