From a945d8b6439e0684b1a8e0d3382207dad63b486a Mon Sep 17 00:00:00 2001 From: Sayali M Date: Thu, 7 Nov 2024 12:18:12 -0600 Subject: [PATCH] handle dryrun value hereas a safe side. --- .github/workflows/create-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index a977866..b39c7ed 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -42,7 +42,7 @@ jobs: } if (context.payload.client_payload) { const liquibaseVersion = context.payload.client_payload.liquibaseVersion - const dryRun = context.payload.client_payload.dryRun + const dryRun = context.payload.client_payload.dryRun || false const minorVersion = getMinorVersion(liquibaseVersion) core.setOutput("liquibaseVersion", liquibaseVersion); core.setOutput("extensionVersion", liquibaseVersion); @@ -50,7 +50,7 @@ jobs: core.setOutput("dryRun", dryRun); } else if (context.payload.inputs) { const liquibaseVersion = context.payload.inputs.liquibaseVersion - const dryRun = context.payload.inputs.dryRun + const dryRun = context.payload.inputs.dryRun || false const minorVersion = getMinorVersion(liquibaseVersion) core.setOutput("liquibaseVersion", liquibaseVersion); core.setOutput("extensionVersion", context.payload.inputs.extensionVersion || liquibaseVersion); @@ -276,4 +276,3 @@ jobs: - name: Adding Official Docker PR to job summary if: ${{ needs.update-dockerfiles.outputs.dryRun == 'false' }} run: echo '### 🚀 Official Docker PR -> ${{ env.PR_URL }}' >> $GITHUB_STEP_SUMMARY - \ No newline at end of file