diff --git a/.github/workflows/build-targets.yml b/.github/workflows/build-targets.yml index acfaf421..9ea92ba0 100644 --- a/.github/workflows/build-targets.yml +++ b/.github/workflows/build-targets.yml @@ -5,8 +5,6 @@ name: Cache Sources and build Artifact Libraries per OS on: workflow_dispatch: -env: - GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_1 }} jobs: setup-src-cache: runs-on: ubuntu-latest @@ -23,6 +21,13 @@ jobs: with: submodules: false + - name: Authenticate GitHub CLI + run: | + echo $GH_TOKEN | gh auth login --with-token + gh auth status + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + - name: Install GH cli extension actions-cache run: | gh extension install actions/gh-actions-cache @@ -33,6 +38,8 @@ jobs: echo "REPO=${{ github.repository }}" >> $GITHUB_ENV echo "BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} - name: Find cache and clean out old caches of `thirdparty` id: tp-check