From 2d078a9d506d73b83937f76f79cdbc52a03768f5 Mon Sep 17 00:00:00 2001 From: jandroav Date: Mon, 4 Sep 2023 09:28:14 +0200 Subject: [PATCH] fix(workflows): update conditionals in extension-attach-artifact-release.yml, os-extension-test.yml, pro-extension-test.yml, and sonar-test-scan.yml to use 'inputs' instead of 'github.event.inputs' for improved readability and consistency. --- .github/workflows/extension-attach-artifact-release.yml | 4 ++-- .github/workflows/os-extension-test.yml | 4 ++-- .github/workflows/pro-extension-test.yml | 4 ++-- .github/workflows/sonar-test-scan.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/extension-attach-artifact-release.yml b/.github/workflows/extension-attach-artifact-release.yml index f0457a78..2df2b7ed 100644 --- a/.github/workflows/extension-attach-artifact-release.yml +++ b/.github/workflows/extension-attach-artifact-release.yml @@ -102,13 +102,13 @@ jobs: ASSET_DIR: ./target - name: Get upload_zip.sh Script File - if: github.event.inputs.zip == 'true' + if: inputs.zip == 'true' run: | curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.9/.github/upload_zip.sh chmod +x $PWD/.github/upload_zip.sh - name: Attach Zip File to Draft Release - if: github.event.inputs.zip == 'true' + if: inputs.zip == 'true' id: upload-release-zip run: ./.github/upload_zip.sh $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) env: diff --git a/.github/workflows/os-extension-test.yml b/.github/workflows/os-extension-test.yml index 54832d24..48f44237 100644 --- a/.github/workflows/os-extension-test.yml +++ b/.github/workflows/os-extension-test.yml @@ -64,8 +64,8 @@ jobs: strategy: fail-fast: false matrix: - java: ${{fromJson(github.event.inputs.java || '[8, 11, 17, 18]')}} - os: ${{fromJson(github.event.inputs.os || '["ubuntu-latest", "windows-latest"]')}} + java: ${{fromJson(inputs.java || '[8, 11, 17, 18]')}} + os: ${{fromJson(inputs.os || '["ubuntu-latest", "windows-latest"]')}} name: Test Java ${{ matrix.java }} - ${{ matrix.os }} runs-on: ${{ matrix.os }} needs: build diff --git a/.github/workflows/pro-extension-test.yml b/.github/workflows/pro-extension-test.yml index 2eecb520..fda042ef 100644 --- a/.github/workflows/pro-extension-test.yml +++ b/.github/workflows/pro-extension-test.yml @@ -84,8 +84,8 @@ jobs: strategy: fail-fast: false matrix: - java: ${{fromJson(github.event.inputs.java || '[8, 11, 17, 18]')}} - os: ${{fromJson(github.event.inputs.os || '["ubuntu-latest", "windows-latest"]')}} + java: ${{fromJson(inputs.java || '[8, 11, 17, 18]')}} + os: ${{fromJson(inputs.os || '["ubuntu-latest", "windows-latest"]')}} name: Test Java ${{ matrix.java }} - ${{ matrix.os }} runs-on: ${{ matrix.os }} needs: build diff --git a/.github/workflows/sonar-test-scan.yml b/.github/workflows/sonar-test-scan.yml index 5d9bdb18..569d1a04 100644 --- a/.github/workflows/sonar-test-scan.yml +++ b/.github/workflows/sonar-test-scan.yml @@ -137,7 +137,7 @@ jobs: LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.PRO_LICENSE_KEY }} run: | export ORACLE_HOME=$ORACLE_HOME:$HOME/instantclient_21_5; export PATH=$PATH:$HOME/instantclient_21_5; export SQLPATH=$HOME/instantclient_21_5; export NLS_LANG=AMERICAN_AMERICA.UTF8; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/instantclient_21_5 - ./mvnd/bin/mvnd -B clean verify sonar:sonar \ + ./mvnd/bin/mvnd -B clean verify sonar:sonar -P 'testAll,!run-proguard' \ "${{ inputs.mavenArgs }}" \ "-Dliquibase.version=${{ inputs.liquibaseBranchName }}-SNAPSHOT" \ "-Dbuild.pro.number=${{ github.run_number }}" \