mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Test
This commit is contained in:
parent
6920b72cf4
commit
3d9b7ed7d3
10
.github/workflows/pr-18.yaml
vendored
10
.github/workflows/pr-18.yaml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_TOKENS: ${{ secrets.GH_TOKEN }}
|
||||
GH_TOKENS: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
@ -25,11 +25,6 @@ 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: Assign reviewer
|
||||
env:
|
||||
#REVIEWER: "eldy,lvessiller-opendsi,rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer
|
||||
|
|
@ -37,7 +32,10 @@ jobs:
|
|||
run: |
|
||||
echo "GH_TOKEN=$GH_TOKEN"
|
||||
echo "GH_TOKENS=$GH_TOKENS"
|
||||
echo Get the pr_number
|
||||
pr_number=$(jq --raw-output .number < $GITHUB_EVENT_PATH)
|
||||
echo authenticatenv
|
||||
gh auth login --with-token <<< "$GH_TOKEN"
|
||||
echo "pr_numer=$pr_number"
|
||||
gh pr edit $pr_number --add-reviewer "$REVIEWER"
|
||||
continue-on-error: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user