Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update airbyte-ci action to install dev if pipeline has been edited #33519

Merged
merged 25 commits into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/actions/run-dagger-pipeline/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,50 @@ runs:
echo "PR is from a fork. Exiting workflow..."
exit 78
fi

- name: Get changed files
uses: tj-actions/changed-files@v39
id: changes
with:
files_yaml: |
pipelines:
- 'airbyte-ci/connectors/pipelines/**'

- name: Docker login
uses: docker/login-action@v1
with:
username: ${{ inputs.docker_hub_username }}
password: ${{ inputs.docker_hub_password }}

- name: Get start timestamp
id: get-start-timestamp
shell: bash
run: echo "name=start-timestamp=$(date +%s)" >> $GITHUB_OUTPUT

- name: Install airbyte-ci binary
id: install-airbyte-ci
if: github.ref == 'refs/heads/master' || steps.changes.outputs.pipelines_any_changed == 'false'
shell: bash
run: |
curl -sSL ${{ inputs.airbyte_ci_binary_url }} --output airbyte-ci-bin
sudo mv airbyte-ci-bin /usr/local/bin/airbyte-ci
sudo chmod +x /usr/local/bin/airbyte-ci

- name: Install Python 3.10
uses: actions/setup-python@v4
if: github.ref != 'refs/heads/master' && steps.changes.outputs.pipelines_any_changed == 'true'
with:
python-version: "3.10"
token: ${{ inputs.github_token }}

- name: Install ci-connector-ops package
if: github.ref != 'refs/heads/master' && steps.changes.outputs.pipelines_any_changed == 'true'
shell: bash
run: |
pip install pipx
pipx ensurepath
pipx install airbyte-ci/connectors/pipelines/

- name: Run airbyte-ci
shell: bash
run: |
Expand Down
Loading