This commit is contained in:
Laurent Destailleur (aka Eldy) 2024-12-08 15:35:03 +01:00
parent 9a9602f418
commit 6920b72cf4
2 changed files with 6 additions and 5 deletions

View File

@ -25,10 +25,10 @@ jobs:
sudo apt update
sudo apt install gh -y
#- name: Authenticate GitHub CLI
# run: |
# echo "GH_TOKEN=$GH_TOKEN"
# gh auth login --with-token <<< "$GH_TOKEN"
- name: Authenticate GitHub CLI
run: |
echo "GH_TOKEN=$GH_TOKEN"
gh auth login --with-token <<< "$GH_TOKEN"
- name: Assign reviewer
env:
@ -38,5 +38,6 @@ jobs:
echo "GH_TOKEN=$GH_TOKEN"
echo "GH_TOKENS=$GH_TOKENS"
pr_number=$(jq --raw-output .number < $GITHUB_EVENT_PATH)
echo "pr_numer=$pr_number"
gh pr edit $pr_number --add-reviewer "$REVIEWER"
continue-on-error: true

View File

@ -8,7 +8,7 @@ on:
types: [created]
workflow_dispatch:
permissions: {} # no restriction on permissions
permissions: {} # no restriction by default
jobs:
stale: