Skip to content

Commit

Permalink
Merge pull request #7 from furality/push_token
Browse files Browse the repository at this point in the history
ci(auto-merge): use PUSH_TOKEN
  • Loading branch information
ttshivers authored Aug 8, 2023
2 parents eb0101e + 175a9b2 commit e219f9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
id: dependabot-metadata
uses: dependabot/[email protected]
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 }}

0 comments on commit e219f9e

Please sign in to comment.