.github: Add PAT to PRSubmitActions/Add Reviewers

This commit is contained in:
George Joseph 2024-03-06 09:21:33 -07:00
parent 18f3c355f7
commit a7e4c193fc
1 changed files with 2 additions and 1 deletions

View File

@ -123,8 +123,9 @@ jobs:
REVIEWERS: ${{vars.PR_REVIEWERS}}
with:
retries: 5
github-token: ${{ secrets.ASTERISKTEAM_PAT }}
script: |
let rs = JSON.parse(process.env.REVIEWERS);
let rs = JSON.parse(process.env.REVIEWERS.length ? process.env.REVIEWERS : '[]');
let users = [];
let teams = [];
for (const r of rs) {