diff --git a/.github/actions/database-deploy/action.yml b/.github/actions/database-deploy/action.yml index 326bf79b..156208d2 100644 --- a/.github/actions/database-deploy/action.yml +++ b/.github/actions/database-deploy/action.yml @@ -20,6 +20,15 @@ inputs: DB_FOLDER: description: 'Folder where SQL Files live' required: true + REDGATE_EMAIL: + description: 'Redgate authentication email' + required: true + REDGATE_PAT: + description: 'Redgate authentication Personal Access Token' + required: true + SQLCOMPARE_VERSION: + description: 'Version of SQL Compare to use' + required: true runs: using: "composite" @@ -29,14 +38,17 @@ runs: shell: bash run: docker pull redgate/sqlcompare:15.3.0 - + # Need to get these to work + # /email:"${{inputs.REDGATE_EMAIL}}" \ + # /token:"${{inputs.REDGATE_PAT}}" \ - name: "Build SQL Diff change" shell: bash run: | docker run \ "-v$GITHUB_WORKSPACE:$GITHUB_WORKSPACE" \ --net=host \ - --rm redgate/sqlcompare:15.3.0 \ + --rm \ + "redgate/sqlcompare:${{inputs.SQLCOMPARE_VERSION}}" \ /IAgreeToTheEULA \ /filter:"$DB_FILTER" \ /options:CaseSensitiveObjectDefinition,ConsiderNextFilegroupInPartitionSchemes,DecryptPost2kEncryptedObjects,DoNotOutputCommentHeader,ForceColumnOrder,IgnoreCertificatesAndCryptoKeys,IgnoreDatabaseAndServerName,IgnoreUserProperties,IgnoreUsersPermissionsAndRoleMemberships,IgnoreWhiteSpace,IgnoreWithElementOrder,IncludeDependencies,NoDeploymentLogging,ThrowOnFileParseFailed,UseCompatibilityLevel \