Skip to content

Commit 871be8f

Browse files
committed
Add missing GH_TOKEN environment variable
It is needed for using the `gh` CLI commands.
1 parent cdd8af2 commit 871be8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/post-merge.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Perform analysis and send PR
20+
env:
21+
GH_TOKEN: ${{ github.token }}
2022
run: |
2123
# Get closest bors merge commit
2224
PARENT_COMMIT=`git rev-list --author='bors <[email protected]>' -n1 --first-parent HEAD^1`
25+
echo "Parent: ${PARENT_COMMIT}"
2326
2427
# Find PR for the current commit
2528
HEAD_PR=`gh pr list --search "${{ github.sha }}" --state merged --json number --jq '.[0].number'`
26-
27-
echo "Parent: ${PARENT_COMMIT}"
2829
echo "HEAD: ${{ github.sha }} (#${HEAD_PR})"
2930
3031
cd src/ci/citool

0 commit comments

Comments
 (0)