From a80186d7f8882255e80e90e4f76ab382a3d14565 Mon Sep 17 00:00:00 2001 From: Gokhan Gulbiz Date: Mon, 21 Aug 2023 12:27:15 +0300 Subject: [PATCH] Fix install_extension --- .github/actions/install_extension/action.yml | 9 ++++++++- .github/workflows/build_and_test.yml | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/install_extension/action.yml b/.github/actions/install_extension/action.yml index 010a30d10..40132a881 100644 --- a/.github/actions/install_extension/action.yml +++ b/.github/actions/install_extension/action.yml @@ -6,7 +6,14 @@ runs: using: composite steps: - name: Expose $PG_MAJOR to Github Env - run: echo "PG_MAJOR=${{ inputs.pg_major || env.PG_MAJOR }}" >> $GITHUB_ENV + run: |- + if [ -z "${{ inputs.pg_major }}"]; then + echo "PG_MAJOR=${{ inputs.pg_major}}" >> $GITHUB_ENV + else + echo "PG_MAJOR=${{ env.PG_MAJOR }}" >> $GITHUB_ENV + fi + echo "inputs.pg_major : ${{ inputs.pg_major }}" + echo "env.pg_major : ${{ env.PG_MAJOR }}" shell: bash - uses: actions/download-artifact@v3.0.1 with: diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index b5e4a34c4..e9e55680d 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -397,7 +397,6 @@ jobs: test-flakyness-pre: name: Detect regression tests need to be ran runs-on: ubuntu-latest - needs: build outputs: tests: ${{ steps.detect-regression-tests.outputs.tests }} steps: