fix(ci): Use actual docker-image-tag in /publish-connectors-prerelease completion comment (#70817)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
This commit is contained in:
committed by
GitHub
parent
6a48afc369
commit
37229e0b69
@@ -176,13 +176,12 @@ jobs:
|
||||
id: message-vars
|
||||
run: |
|
||||
CONNECTOR_NAME="${{ needs.init.outputs.connector-name }}"
|
||||
SHORT_SHA="${{ needs.init.outputs.short-sha }}"
|
||||
VERSION="${{ needs.init.outputs.connector-version }}"
|
||||
# Use the actual docker-image-tag from the publish workflow output
|
||||
DOCKER_TAG="${{ needs.publish.outputs.docker-image-tag }}"
|
||||
|
||||
if [[ -n "$VERSION" ]]; then
|
||||
DOCKER_TAG="${VERSION}-dev.${SHORT_SHA}"
|
||||
else
|
||||
DOCKER_TAG="{version}-dev.${SHORT_SHA}"
|
||||
if [[ -z "$DOCKER_TAG" ]]; then
|
||||
echo "::error::docker-image-tag output is missing from publish workflow. This is unexpected."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "connector_name=$CONNECTOR_NAME" >> $GITHUB_OUTPUT
|
||||
|
||||
6
.github/workflows/publish_connectors.yml
vendored
6
.github/workflows/publish_connectors.yml
vendored
@@ -21,6 +21,10 @@ on:
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
outputs:
|
||||
docker-image-tag:
|
||||
description: "Docker image tag used when publishing. For single-connector callers only; multi-connector callers should not rely on this output."
|
||||
value: ${{ jobs.publish_connector_registry_entries.outputs.docker-image-tag }}
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
connectors:
|
||||
@@ -250,6 +254,8 @@ jobs:
|
||||
max-parallel: 5
|
||||
# Allow all jobs to run, even if one fails
|
||||
fail-fast: false
|
||||
outputs:
|
||||
docker-image-tag: ${{ steps.connector-metadata.outputs.docker-image-tag }}
|
||||
steps:
|
||||
- name: Checkout Airbyte
|
||||
# v4
|
||||
|
||||
Reference in New Issue
Block a user