diff --git a/.github/workflows/build-user-config.yml b/.github/workflows/build-user-config.yml index 7d97b8c9a14b..f8bd47ad209f 100644 --- a/.github/workflows/build-user-config.yml +++ b/.github/workflows/build-user-config.yml @@ -66,8 +66,9 @@ jobs: shield: ${{ matrix.shield }} artifact_name: ${{ matrix.artifact-name }} run: | - echo "tmp_dir=$(mktemp -d)" >> $GITHUB_ENV - echo "tmp_config_dir=${{ env.tmp_dir }}/config/" >> $GITHUB_ENV + export new_tmp_dir=$(mktemp -d) + echo "tmp_dir=${new_tmp_dir}" >> $GITHUB_ENV + echo "tmp_config_dir=${new_tmp_dir}/config/" >> $GITHUB_ENV if [ -e zephyr/module.yml ]; then export zmk_load_arg=" -DZMK_EXTRA_MODULES='${GITHUB_WORKSPACE}'" fi @@ -79,7 +80,8 @@ jobs: echo "artifact_name=${artifact_name:-${shield:+$shield-}${board}-zmk}" >> $GITHUB_ENV - name: Move config files to isolate temporary directory - run: mv ${{ input.config_path }}/* "${{ env.tmp_config_dir }}/"" + run: mv ${{ inputs.config_path }}/* "${{ env.tmp_config_dir }}/" + - name: Cache west modules uses: actions/cache@v3.0.11 continue-on-error: true @@ -99,7 +101,7 @@ jobs: ${{ runner.os }}- - name: West Init - run: west init -l "${{ inputs.config_path }}" + run: west init -l "${{ env.tmp_config_dir }}" - name: West Update run: west update