We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ed1134 commit d8aaefaCopy full SHA for d8aaefa
.github/workflows/auto-review.yml
@@ -27,9 +27,14 @@ jobs:
27
pip install pyyaml
28
29
- name: Authenticate with GitHub
30
- run: echo "${{ secrets.GH_PAT }}" | gh auth login --with-token
31
- env:
32
- GH_TOKEN: ${{ secrets.GH_PAT }}
+ run: |
+ if [ -z "${{ secrets.GH_PAT }}" ]; then
+ echo "Error: GH_PAT secret is not set"
33
+ exit 1
34
+ fi
35
+ # Clear GH_TOKEN to avoid conflicts with GITHUB_TOKEN
36
+ unset GH_TOKEN
37
+ echo "${{ secrets.GH_PAT }}" | gh auth login --with-token
38
39
- name: Assign reviewer
40
env:
0 commit comments