]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
.github: Add PAT to PRSubmitActions/Add Reviewers
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 6 Mar 2024 16:21:33 +0000 (09:21 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 6 Mar 2024 16:25:42 +0000 (09:25 -0700)
.github/workflows/PRSubmitActions.yml

index 2ea87c7601fe87c96cbd82fa99c8aa05fe6d577d..c7706d56093da9609d272c5a6b94505531c63a1a 100644 (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) {