Skip to content

Commit 69e60b7

Browse files
Fix CLOUDSDK_PYTHON env var on Windows in tests
The setting of these env vars was recently updated to use the new syntax. This does not work as-is on powershell due to encoding, as documented here: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files To fix this, execute this using bash.
1 parent cd61ff2 commit 69e60b7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ jobs:
663663
# Workaround for https://github.com/GoogleCloudPlatform/github-actions/issues/100
664664
# Must be run after the Python setup action
665665
- name: Set CLOUDSDK_PYTHON (Windows)
666+
shell: bash
666667
if: runner.os == 'Windows' && !cancelled()
667668
run: echo "CLOUDSDK_PYTHON=${{env.pythonLocation}}\python.exe" >> $GITHUB_ENV
668669
- name: Install Cloud SDK

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
# Workaround for https://github.com/GoogleCloudPlatform/github-actions/issues/100
124124
# Must be run after the Python setup action
125125
- name: Set CLOUDSDK_PYTHON (Windows)
126+
shell: bash
126127
if: startsWith(matrix.os, 'windows') && !cancelled()
127128
run: echo "CLOUDSDK_PYTHON=${{env.pythonLocation}}\python.exe" >> $GITHUB_ENV
128129
- name: Install Cloud SDK

0 commit comments

Comments
 (0)