Skip to content

Commit

Permalink
[github actions] use token from real user flutter mirror bot (#140191)
Browse files Browse the repository at this point in the history
sir @godofredoc pointed out that we should use a real user to create PRs with, and we already have one account with such credentials -- the mirror bot.
  • Loading branch information
XilaiZhang authored Dec 15, 2023
1 parent 13b8106 commit 8c1d723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/easy-cp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
base: ${{ env.RELEASE_BRANCH }}
branch: cp-${{ env.CHANNEL }}-${{ env.COMMIT_SHA }}
path: flutter
token: ${{ github.token}}
token: ${{ secrets.FLUTTERMIRRORINGBOT_TOKEN}}
labels: |
cp: review
title: '[${{ env.CHANNEL }}-cherrypick] cherrypicks commit ${{ env.COMMIT_SHA }} from PR ${{ github.event.pull_request.title }}'
Expand All @@ -72,4 +72,4 @@ jobs:
FAILURE_MSG+="You will need to create the PR manually. See [the cherrypick wiki](https://github.com/flutter/flutter/wiki/Flutter-Cherrypick-Process) for more info."
gh pr comment ${{ github.event.pull_request.number }} -R flutter/flutter -b "${FAILURE_MSG}"
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.FLUTTERMIRRORINGBOT_TOKEN }}

0 comments on commit 8c1d723

Please sign in to comment.