Unverified Commit 8c1d723d authored by Xilai Zhang's avatar Xilai Zhang Committed by GitHub

[github actions] use token from real user flutter mirror bot (#140191)

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.
parent 13b81068
...@@ -60,7 +60,7 @@ jobs: ...@@ -60,7 +60,7 @@ jobs:
base: ${{ env.RELEASE_BRANCH }} base: ${{ env.RELEASE_BRANCH }}
branch: cp-${{ env.CHANNEL }}-${{ env.COMMIT_SHA }} branch: cp-${{ env.CHANNEL }}-${{ env.COMMIT_SHA }}
path: flutter path: flutter
token: ${{ github.token}} token: ${{ secrets.FLUTTERMIRRORINGBOT_TOKEN}}
labels: | labels: |
cp: review cp: review
title: '[${{ env.CHANNEL }}-cherrypick] cherrypicks commit ${{ env.COMMIT_SHA }} from PR ${{ github.event.pull_request.title }}' title: '[${{ env.CHANNEL }}-cherrypick] cherrypicks commit ${{ env.COMMIT_SHA }} from PR ${{ github.event.pull_request.title }}'
...@@ -72,4 +72,4 @@ jobs: ...@@ -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." 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}" gh pr comment ${{ github.event.pull_request.number }} -R flutter/flutter -b "${FAILURE_MSG}"
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ secrets.FLUTTERMIRRORINGBOT_TOKEN }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment