Push commits and raise PR using `HOMEBREW_GITHUB_API_TOKEN (BrewTestBot's)

- The github-actions[bot] PRs don't to trigger CI runs, and are hence
  unmergeable without manual intervention.
This commit is contained in:
Issy Long 2020-08-16 12:39:21 +01:00 committed by Mike McQuaid
parent 982c7adaf2
commit 0244eb89ae
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -45,13 +45,13 @@ jobs:
- name: Push commits
uses: Homebrew/actions/git-try-push@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
branch: tapioca-update
directory: Library/Homebrew/
- name: Open a PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
run: |
cd "$GITHUB_WORKSPACE/Library/Homebrew"
hub pull-request -m "$(git log -1 --format='%s')"