[actions] Add github context env in label action. (#11926)

This commit is contained in:
Liu Shilong 2022-09-02 14:07:48 +08:00 committed by GitHub
parent f82c1fd8ae
commit 030de9f26d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: approve
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
set -e
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token