Skip to content

Workflow file for this run

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- "18.0"
push:
branches:
- "18.0"
#permissions: write-all
jobs:
pr18:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}

Check failure on line 20 in .github/workflows/pr-18.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-18.yaml

Invalid workflow file

You have an error in your yaml syntax on line 20
GH_TOKENS: ${{ secrets.GH_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install GitHub CLI
run: |
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
REVIEWER: "rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer
run: |
echo "GH_TOKEN=$GH_TOKEN"
echo "GH_TOKENS=$GH_TOKENS"
pr_number=$(jq --raw-output .number < $GITHUB_EVENT_PATH)
gh pr edit $pr_number --add-reviewer "$REVIEWER"
continue-on-error: true