fix(ci): Pass gitref to publish_connectors.yml for pre-release builds (#70842)
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
9ba729116d
commit
f3bff79695
@@ -147,6 +147,7 @@ jobs:
|
||||
with:
|
||||
connectors: ${{ format('--name={0}', needs.init.outputs.connector-name) }}
|
||||
release-type: pre-release
|
||||
gitref: ${{ inputs.gitref }}
|
||||
secrets: inherit
|
||||
|
||||
post-completion:
|
||||
|
||||
9
.github/workflows/publish_connectors.yml
vendored
9
.github/workflows/publish_connectors.yml
vendored
@@ -21,6 +21,10 @@ on:
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
gitref:
|
||||
description: "Git ref (branch or SHA) to build connectors from. Used by pre-release workflow to build from PR branches."
|
||||
required: false
|
||||
type: string
|
||||
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."
|
||||
@@ -52,6 +56,7 @@ jobs:
|
||||
# v4
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
|
||||
with:
|
||||
ref: ${{ inputs.gitref || '' }}
|
||||
fetch-depth: 2 # Required so we can conduct a diff from the previous commit to understand what connectors have changed.
|
||||
submodules: true # Required for the enterprise repo since it uses a submodule that needs to exist for this workflow to run successfully.
|
||||
- name: List connectors to publish [manual]
|
||||
@@ -109,6 +114,7 @@ jobs:
|
||||
# v4
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
|
||||
with:
|
||||
ref: ${{ inputs.gitref || '' }}
|
||||
fetch-depth: 2 # Required so we can conduct a diff from the previous commit to understand what connectors have changed.
|
||||
submodules: true # Required for the enterprise repo since it uses a submodule that needs to exist for this workflow to run successfully.
|
||||
|
||||
@@ -261,6 +267,7 @@ jobs:
|
||||
# v4
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
|
||||
with:
|
||||
ref: ${{ inputs.gitref || '' }}
|
||||
fetch-depth: 2 # Required so we can conduct a diff from the previous commit to understand what connectors have changed.
|
||||
submodules: true # Required for the enterprise repo since it uses a submodule that needs to exist for this workflow to run successfully.
|
||||
|
||||
@@ -355,6 +362,7 @@ jobs:
|
||||
# v4
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
|
||||
with:
|
||||
ref: ${{ inputs.gitref || '' }}
|
||||
submodules: true # Required for the enterprise repo since it uses a submodule that needs to exist for this workflow to run successfully.
|
||||
- name: Match GitHub User to Slack User
|
||||
id: match-github-to-slack-user
|
||||
@@ -387,6 +395,7 @@ jobs:
|
||||
# v4
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
|
||||
with:
|
||||
ref: ${{ inputs.gitref || '' }}
|
||||
submodules: true # Required for the enterprise repo since it uses a submodule that needs to exist for this workflow to run successfully.
|
||||
- name: Notify PagerDuty
|
||||
id: pager-duty
|
||||
|
||||
Reference in New Issue
Block a user