From f81d7b350ae3588758184324ed1fa1d400522b1d Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Mon, 23 May 2022 12:35:17 -0400 Subject: [PATCH] build: fixes whitespace bug in upload condition, refactors --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77448cb0e..e08465a12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ on: type: boolean env: - DO_UPLOAD: > + DO_UPLOAD: >- ${{ inputs.upload || (github.ref_name == 'next/vere' && github.ref_type == 'branch') @@ -112,7 +112,7 @@ jobs: >> $GITHUB_ENV - uses: google-github-actions/setup-gcloud@v0.2.0 - if: ${{ env.DO_UPLOAD == 'true' }} + if: env.DO_UPLOAD == 'true' with: version: '290.0.1' service_account_key: ${{ secrets.GCS_SERVICE_ACCOUNT_KEY }} @@ -120,7 +120,7 @@ jobs: export_default_credentials: true - name: upload binary to bootstrap.urbit.org - if: ${{ env.DO_UPLOAD == 'true' }} + if: env.DO_UPLOAD == 'true' run: | version="$(cat ./pkg/urbit/version)" system="$(nix-instantiate --eval --expr 'builtins.currentSystem')" @@ -168,12 +168,12 @@ jobs: http://localhost:12321 - uses: actions/setup-python@v2 - if: ${{ env.DO_UPLOAD == 'true' }} + if: env.DO_UPLOAD == 'true' with: python-version: 3.7 - uses: google-github-actions/setup-gcloud@v0.6.0 - if: ${{ env.DO_UPLOAD == 'true' }} + if: env.DO_UPLOAD == 'true' env: # see https://github.com/google-github-actions/setup-gcloud/issues/100 CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe @@ -183,7 +183,7 @@ jobs: export_default_credentials: true - name: upload binary to bootstrap.urbit.org - if: ${{ env.DO_UPLOAD == 'true' }} + if: env.DO_UPLOAD == 'true' env: CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe shell: bash