Parcourir la source

fix token definition

marionbarker il y a 2 ans
Parent
commit
a357eddb33
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      .github/workflows/build_Open-iAPS.yml

+ 1 - 1
.github/workflows/build_Open-iAPS.yml

@@ -54,7 +54,7 @@ jobs:
     - name: Check for alive branch
     - name: Check for alive branch
       if: steps.workflow-permission.outputs.has_permission == 'true'
       if: steps.workflow-permission.outputs.has_permission == 'true'
       env:
       env:
-        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        GITHUB_TOKEN: ${{ secrets.GH_PAT }}
       run: |
       run: |
         if [[ "$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/branches | jq --raw-output 'any(.name=="alive")')" == "true" ]]; then
         if [[ "$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/branches | jq --raw-output 'any(.name=="alive")')" == "true" ]]; then
           echo "Branch 'alive' exists."
           echo "Branch 'alive' exists."