Add missing GH_TOKEN
environment variable
It is needed for using the `gh` CLI commands.
This commit is contained in:
parent
cdd8af2299
commit
871be8f54a
1 changed files with 3 additions and 2 deletions
5
.github/workflows/post-merge.yml
vendored
5
.github/workflows/post-merge.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue