From bc8f236806d1cb5242c79d15a2218daf27bf60b8 Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Fri, 9 Jun 2023 11:28:29 +0800 Subject: [PATCH] ci: fix using env in job.if context (#1751) --- .github/workflows/release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c465b91b75..17a0614fcc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,8 +31,6 @@ env: # Controls whether to run tests, include unit-test, integration-test and sqlness. DISABLE_RUN_TESTS: ${{ github.event.inputs.skip_test || false }} - DRY_RUN: ${{ github.event.inputs.dry_run || false }} - jobs: build-macos: name: Build macOS binary @@ -292,7 +290,7 @@ jobs: name: Build docker image needs: [build-linux, build-macos] runs-on: ubuntu-latest - if: github.repository == 'GreptimeTeam/greptimedb' && !env.DRY_RUN + if: github.repository == 'GreptimeTeam/greptimedb' && !(github.event.inputs.dry_run || false) steps: - name: Checkout sources uses: actions/checkout@v3 @@ -378,7 +376,7 @@ jobs: # Release artifacts only when all the artifacts are built successfully. needs: [build-linux, build-macos, docker] runs-on: ubuntu-latest - if: github.repository == 'GreptimeTeam/greptimedb' && !env.DRY_RUN + if: github.repository == 'GreptimeTeam/greptimedb' && !(github.event.inputs.dry_run || false) steps: - name: Checkout sources uses: actions/checkout@v3 @@ -437,7 +435,7 @@ jobs: name: Push docker image to alibaba cloud container registry needs: [docker] runs-on: ubuntu-latest - if: github.repository == 'GreptimeTeam/greptimedb' && !env.DRY_RUN + if: github.repository == 'GreptimeTeam/greptimedb' && !(github.event.inputs.dry_run || false) continue-on-error: true steps: - name: Checkout sources