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 type: boolean
default: false default: false
env:
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
jobs: jobs:
ci-hpc: ci-hpc:
name: ci-hpc name: ci-hpc
@ -18,7 +21,7 @@ jobs:
with: with:
name-prefix: eccodes- name-prefix: eccodes-
build-inputs: | build-inputs: |
--env: 'GH_TOKEN='${{ secrets.GH_REPO_READ_TOKEN }} --env: GH_TOKEN=${GH_TOKEN}
--package: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }} --package: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
--modules: | --modules: |
ecbuild ecbuild