Skip to content

Commit

Permalink
[Actions] Updated .github/actions/sql/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Nov 13, 2024
1 parent 0d9b47c commit 05cb2f1
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/actions/sql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ inputs:
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"
steps:
Expand Down Expand Up @@ -41,15 +51,19 @@ runs:

- name: "SQL: Get SQL Compare"
shell: bash
run: docker pull redgate/sqlcompare:15.3.0
run: docker pull "redgate/sqlcompare:${{inputs.SQLCOMPARE_VERSION}}"

# Need to get these to work
# /email:"${{inputs.REDGATE_EMAIL}}" \
# /token:"${{inputs.REDGATE_PAT}}" \
- name: "Build SQL 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 \
Expand Down

0 comments on commit 05cb2f1

Please sign in to comment.