Pass token to to HPC using env var expansion

This commit is contained in:
Dusan Figala 2024-07-25 11:57:29 +02:00 committed by shahramn
parent 83bd0eba05
commit cd68113dc7
1 changed files with 4 additions and 1 deletions

View File

@ -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