Skip to content

Commit e5262f4

Browse files
ci: add --force and --connector-name inputs to registry compile workflow
Adds two optional workflow_dispatch inputs: - force: bypass version marker cache (for metadata-only changes) - connector-name: comma-separated list to scope latest/ resync Closes airbytehq/airbyte-ops-mcp#567 Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent acce19b commit e5262f4

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/generate-connector-registries.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
description: "The git ref to check out from the repository"
88
required: false
99
type: string
10+
force:
11+
description: "Force resync of all latest/ directories even if version markers are current. Useful when metadata changes without a version bump."
12+
required: false
13+
type: boolean
14+
default: false
15+
connector-name:
16+
description: "Comma-separated list of connector names to limit the latest/ resync scope (e.g. 'source-faker,source-github'). Leave empty to compile all connectors."
17+
required: false
18+
type: string
1019
workflow_call:
1120

1221
permissions:
@@ -44,8 +53,19 @@ jobs:
4453
env:
4554
GCS_CREDENTIALS: ${{ secrets.METADATA_SERVICE_PROD_GCS_CREDENTIALS }}
4655
shell: bash
47-
run: >
48-
airbyte-ops registry store compile
49-
--store "${REGISTRY_STORE}"
50-
--with-secrets-mask
51-
--with-legacy-migration v1
56+
run: |
57+
COMPILE_ARGS="airbyte-ops registry store compile"
58+
COMPILE_ARGS="${COMPILE_ARGS} --store ${REGISTRY_STORE}"
59+
COMPILE_ARGS="${COMPILE_ARGS} --with-secrets-mask"
60+
COMPILE_ARGS="${COMPILE_ARGS} --with-legacy-migration v1"
61+
if [[ "${{ inputs.force }}" == "true" ]]; then
62+
COMPILE_ARGS="${COMPILE_ARGS} --force"
63+
fi
64+
if [[ -n "${{ inputs.connector-name }}" ]]; then
65+
IFS=',' read -ra CONNECTORS <<< "${{ inputs.connector-name }}"
66+
for c in "${CONNECTORS[@]}"; do
67+
COMPILE_ARGS="${COMPILE_ARGS} --connector-name $(echo "$c" | xargs)"
68+
done
69+
fi
70+
echo "Running: ${COMPILE_ARGS}"
71+
${COMPILE_ARGS}

0 commit comments

Comments
 (0)