Add missing GH_TOKEN environment variable

It is needed for using the `gh` CLI commands.
This commit is contained in:
Jakub Beránek 2025-03-08 12:46:24 +01:00
parent cdd8af2299
commit 871be8f54a

View file

@ -17,14 +17,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Perform analysis and send PR
env:
GH_TOKEN: ${{ github.token }}
run: |
# Get closest bors merge commit
PARENT_COMMIT=`git rev-list --author='bors <bors@rust-lang.org>' -n1 --first-parent HEAD^1`
echo "Parent: ${PARENT_COMMIT}"
# Find PR for the current commit
HEAD_PR=`gh pr list --search "${{ github.sha }}" --state merged --json number --jq '.[0].number'`
echo "Parent: ${PARENT_COMMIT}"
echo "HEAD: ${{ github.sha }} (#${HEAD_PR})"
cd src/ci/citool