From 606b195265559fd853b9a0e10d7efb04a125c0f3 Mon Sep 17 00:00:00 2001 From: Chris Novakovic Date: Mon, 27 Oct 2025 16:56:59 +0000 Subject: [PATCH] CI: don't unset default interpreter when setting pex tool `$GITHUB_ENV` doesn't persist between steps - changes made to the environment via `$GITHUB_ENV` are reflected in the environments of all future steps. Concatenate extra options onto `PLZ_ARGS` by reading its current value from the environment and writing its desired future value to `$GITHUB_ENV`. --- .github/workflows/plugin_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/plugin_test.yaml b/.github/workflows/plugin_test.yaml index 13274b6..47643c1 100644 --- a/.github/workflows/plugin_test.yaml +++ b/.github/workflows/plugin_test.yaml @@ -41,7 +41,7 @@ jobs: - name: Configure plugin to use please_pex tool built from source if: inputs.please_pex_from_repo run: | - echo "PLZ_ARGS="$(grep ^PLZ_ARGS= $GITHUB_ENV | cut -d= -f2-)" -o plugin.python.pextool://tools/please_pex" >> $GITHUB_ENV + echo "PLZ_ARGS=${PLZ_ARGS:+$PLZ_ARGS }-o plugin.python.pextool://tools/please_pex" >> $GITHUB_ENV - name: Run tests run: ./pleasew test --keep_going --log_file plz-out/log/test.log ${{ inputs.test_targets }} - name: Archive logs