Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayali M authored and Sayali M committed Nov 13, 2024
1 parent 89639a3 commit da888c7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,31 @@ jobs:
const arr = liquibaseVersion.split(".")
return `${arr[0]}.${arr[1]}`
}
let dryRun=false;
if (context.payload.client_payload) {
const liquibaseVersion = context.payload.client_payload.liquibaseVersion
const dryRun = context.payload.client_payload.dryRun
dryRun = context.payload.client_payload.dryRun
const minorVersion = getMinorVersion(liquibaseVersion)
core.setOutput("liquibaseVersion", liquibaseVersion);
core.setOutput("extensionVersion", liquibaseVersion);
core.setOutput("minorVersion", minorVersion);
core.setOutput("dryRun", dryRun);
} else if (context.payload.inputs) {
const liquibaseVersion = context.payload.inputs.liquibaseVersion
const dryRun = context.payload.inputs.dryRun
dryRun = context.payload.inputs.dryRun
const minorVersion = getMinorVersion(liquibaseVersion)
core.setOutput("liquibaseVersion", liquibaseVersion);
core.setOutput("extensionVersion", context.payload.inputs.extensionVersion || liquibaseVersion);
core.setOutput("minorVersion", minorVersion);
core.setOutput("dryRun", dryRun);
console.log(context.payload.inputs);
} else {
core.setFailed('Unknown event type')
}
// Convert string to boolean
if (typeof dryRun === 'string') {
dryRun=dryRun.toLowerCase() === 'true';
}
core.setOutput("dryRun", dryRun);
console.log("dry run val set:", dryRun);
- run: |
echo "Saw Liquibase version ${{ steps.collect-data.outputs.liquibaseVersion }}"
Expand Down

0 comments on commit da888c7

Please sign in to comment.