From 8bcbdf819730ac57f24a711a765765a775cb1ef9 Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Thu, 25 Jul 2024 11:25:05 +0200 Subject: [PATCH] Pass environment variables to the remote machine --- .github/ci-nightly-test.sh | 9 +-------- .github/workflows/reusable-ci-hpc.yml | 7 ++----- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/ci-nightly-test.sh b/.github/ci-nightly-test.sh index 4bf7c14ce..1a3dd3f24 100644 --- a/.github/ci-nightly-test.sh +++ b/.github/ci-nightly-test.sh @@ -14,16 +14,9 @@ module load python3 version=$(cat $TMPDIR/eccodes/VERSION) -env_check_param="$1" -echo env_check: $env_check_param -echo ENV_CHECK: $ENV_CHECK - regression_suite_dir=$TMPDIR/eccodes-regression-tests mkdir -p $regression_suite_dir -git clone https://oauth2:${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir -#git clone https://${GH_TOKEN}:@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir -#git clone https://${GH_TOKEN}:x-oauth-basic@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir -#git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir +git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir cd $regression_suite_dir #cd ~masn/REGRESSION_TESTING/ecCodes diff --git a/.github/workflows/reusable-ci-hpc.yml b/.github/workflows/reusable-ci-hpc.yml index 118738153..b69c04b24 100644 --- a/.github/workflows/reusable-ci-hpc.yml +++ b/.github/workflows/reusable-ci-hpc.yml @@ -11,10 +11,6 @@ on: type: boolean default: false -env: - GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }} - ENV_CHECK: 'SUCCESS' - jobs: ci-hpc: name: ci-hpc @@ -22,6 +18,7 @@ jobs: with: name-prefix: eccodes- build-inputs: | + --env: 'GH_TOKEN=${{ secrets.GH_REPO_READ_TOKEN }}' --package: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }} --modules: | ecbuild @@ -32,6 +29,6 @@ jobs: --cmake-options: | -DENABLE_EXTRA_TESTS=1 ${{ inputs.nightly_test && '-DENABLE_PNG=1,-DENABLE_NETCDF=1' || '' }} - ${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh ${ENV_CHECK}' || '' }} + ${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh' || '' }} ${{ inputs.nightly_test && '--force-build: true' || '' }} secrets: inherit