Closed shermanericts closed 10 months ago
Using the windows-2019 runner, the setup-gcloud fails even when I previously run the setup-python github action to be 3.8 or 3.10. Even setting CLOUDSDK_PYTHON to the correct path doesn't correct this behavior.
No response
I would expect the setup-gcloud not to fail.
name: "Phil Prep" on: schedule: - cron: "0 0 * * 1" # every Monday at 00:00 workflow_dispatch: jobs: phil-prep: permissions: contents: write id-token: write packages: write runs-on: windows-2019 env: GH_TOKEN: ${{ github.token }} environment: main steps: - name: Checkout Code uses: actions/checkout@v3 - name: 'auth service account' uses: 'google-github-actions/auth@v1' with: service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }} workload_identity_provider: ${{ secrets.WORKLOAD_ID_PROVIDER }} - uses: actions/setup-python@v4 with: python-version: '3.8' - name: 'Set up Cloud SDK' uses: 'google-github-actions/setup-gcloud@v1' - name: Prep For Phil.zip run: | python -m ensurepip python -m pip install -r .github/ci-bin/requirements.txt python ./.github/ci-bin/phil.py --action=prep
### Log output https://gist.github.com/shermanericts/9ce10d6a3aea6ba6c2df9532790b81b0 ### Additional information _No response_
Replacing the setup gcloud step with this worked great.
TL;DR
Using the windows-2019 runner, the setup-gcloud fails even when I previously run the setup-python github action to be 3.8 or 3.10. Even setting CLOUDSDK_PYTHON to the correct path doesn't correct this behavior.
Expected behavior
No response
Observed behavior
I would expect the setup-gcloud not to fail.
Action YAML