diff --git a/.github/workflows/dev_ci_cd_conda.yml b/.github/workflows/dev_ci_cd_conda.yml index d33de04..7c4c28f 100644 --- a/.github/workflows/dev_ci_cd_conda.yml +++ b/.github/workflows/dev_ci_cd_conda.yml @@ -17,10 +17,16 @@ jobs: matrix: python-version: ["3.10"] steps: - - name: Set up .cdsapirc + - name: Preserve $HOME set in the container run: | - echo "url: ${{ secrets.ERA5_URL }}" > ~/.cdsapirc - echo "key: ${{ secrets.ERA5_KEY }}" >> ~/.cdsapirc + echo $HOME + echo HOME=$HOME >> "$GITHUB_ENV" + - name: Add ERA5 API key + run: | + cat < $HOME/.cdsapirc + url: ${{ secrets.ERA5_URL }} + key: ${{ secrets.ERA5_KEY }} + EOF - uses: actions/checkout@v4 - uses: conda-incubator/setup-miniconda@v2 with: