From a4e29c949ebc057f5544d2148a156c9f168dd9a2 Mon Sep 17 00:00:00 2001 From: AntoinePrv Date: Mon, 30 Oct 2023 17:02:07 +0100 Subject: [PATCH] Try setting github token differently --- .github/actions/workspace/action.yml | 7 +++++-- .github/workflows/unix.yml | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/workspace/action.yml b/.github/actions/workspace/action.yml index 5af355f50c..bc176e9cf2 100644 --- a/.github/actions/workspace/action.yml +++ b/.github/actions/workspace/action.yml @@ -14,7 +14,10 @@ inputs: required: true key: required: true - default: ${{github.workflow}}-${{ runner.os }}-${{ github.sha }} + default: ${{ github.workflow }}-${{ runner.os }}-${{ github.sha }} + token: + required: false + default: ${{ github.token }} runs: using: "composite" @@ -36,6 +39,6 @@ runs: if: ${{ inputs.action == 'delete' }} shell: bash env: - GITHUB_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ inputs.token }} run: gh cache delete '${{ inputs.key }}' diff --git a/.github/workflows/unix.yml b/.github/workflows/unix.yml index f6cb0be526..03f10a68a9 100644 --- a/.github/workflows/unix.yml +++ b/.github/workflows/unix.yml @@ -86,7 +86,6 @@ jobs: needs: ["libmamba_tests_unix"] runs-on: ubuntu-latest if: always() - permissions: write-all steps: - name: Checkout mamba repository uses: actions/checkout@v3