Skip to content

Commit f79b82f

Browse files
committed
Add Snowflake release support to GH Actions
1 parent 1413d76 commit f79b82f

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "mysql/v*"
77
- "oracle/v*"
88
- "trino/v*"
9-
9+
- "snowflake/v*"
1010

1111
jobs:
1212
build-connector:
@@ -46,7 +46,6 @@ jobs:
4646
JOOQ_PRO_EMAIL=${{ secrets.JOOQ_PRO_EMAIL }}
4747
JOOQ_PRO_LICENSE=${{ secrets.JOOQ_PRO_LICENSE }}
4848
49-
5049
build-cli:
5150
runs-on: ubuntu-latest
5251

@@ -84,7 +83,6 @@ jobs:
8483
JOOQ_PRO_EMAIL=${{ secrets.JOOQ_PRO_EMAIL }}
8584
JOOQ_PRO_LICENSE=${{ secrets.JOOQ_PRO_LICENSE }}
8685
87-
8886
release:
8987
runs-on: ubuntu-latest
9088
needs:
@@ -119,6 +117,21 @@ jobs:
119117
--fully-qualify-names=\$FULLY_QUALIFY_NAMES \\"
120118
POWERSHELL_UPDATE_ARGS=" --database MYSQL \`
121119
--fully-qualify-names=\$env:FULLY_QUALIFY_NAMES \`"
120+
elif [[ "${{ steps.version.outputs.connector }}" == "snowflake" ]]; then
121+
# Snowflake supports both schemas and fully-qualified names
122+
SCHEMA_ENV_VAR="
123+
- name: JDBC_SCHEMAS
124+
description: \"A comma-separated list of schemas to include in the metadata\"
125+
- name: FULLY_QUALIFY_NAMES
126+
description: \"Whether to fully qualify table names in the generated configuration, e.g., \`schema.table\` rather than \`table\`\"
127+
defaultValue: \"false\""
128+
UPDATE_ARGS="--database, SNOWFLAKE, --schemas, \$JDBC_SCHEMAS, --fully-qualify-names=\$FULLY_QUALIFY_NAMES"
129+
BASH_UPDATE_ARGS=" --database SNOWFLAKE \\
130+
--schemas \$JDBC_SCHEMAS \\
131+
--fully-qualify-names=\$FULLY_QUALIFY_NAMES \\"
132+
POWERSHELL_UPDATE_ARGS=" --database SNOWFLAKE \`
133+
--schemas \$env:JDBC_SCHEMAS \`
134+
--fully-qualify-names=\$env:FULLY_QUALIFY_NAMES \`"
122135
elif [[ "${{ steps.version.outputs.connector }}" == "oracle" ]]; then
123136
# Oracle-specific configuration
124137
SCHEMA_ENV_VAR="

0 commit comments

Comments
 (0)