From cd68113dc741e3cae641b501b20e8eac25201e90 Mon Sep 17 00:00:00 2001 From: Dusan Figala Date: Thu, 25 Jul 2024 11:57:29 +0200 Subject: [PATCH] Pass token to to HPC using env var expansion --- .github/workflows/reusable-ci-hpc.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-ci-hpc.yml b/.github/workflows/reusable-ci-hpc.yml index 7d1c08ecc..5196704c9 100644 --- a/.github/workflows/reusable-ci-hpc.yml +++ b/.github/workflows/reusable-ci-hpc.yml @@ -11,6 +11,9 @@ on: type: boolean default: false +env: + GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }} + jobs: ci-hpc: name: ci-hpc @@ -18,7 +21,7 @@ jobs: with: name-prefix: eccodes- build-inputs: | - --env: 'GH_TOKEN='${{ secrets.GH_REPO_READ_TOKEN }} + --env: GH_TOKEN=${GH_TOKEN} --package: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }} --modules: | ecbuild