Skip to content

Commit eac3666

Browse files
authored
Merge branch 'aj/ci/add-github-workflows' into dependabot/pip/pip-6216e35676
2 parents 4c905c4 + 871555d commit eac3666

17 files changed

+82
-54
lines changed

.github/release-drafter.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,17 @@ autolabeler:
4747
- label: 'enhancement'
4848
title:
4949
- '/^feat(\(.*\))?/i'
50+
- label: 'docs'
51+
title:
52+
- '/^docs(\(.*\))?\:/i'
53+
- label: 'security'
54+
title:
55+
- '/^security(\(.*\))?\:/i'
56+
- '/^fix(\(security\))?\:/i'
57+
- label: 'dependencies'
58+
title:
59+
- '/^chore\(deps\)\:/i'
60+
- '/^build\(deps\)\:/i'
61+
- label: 'breaking'
62+
title:
63+
- '/!:\s*$/i'

.github/workflows/connector-tests.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
if: ${{ matrix.cdk_extra != 'n/a' && needs.cdk_changes.outputs[matrix.cdk_extra] == 'false' }}
100100
run: |
101101
echo "Aborting job as specified extra not changed: ${{matrix.cdk_extra}} = ${{ needs.cdk_changes.outputs[matrix.cdk_extra] }}"
102-
echo "::set-output name=status::cancelled"
102+
echo "status=cancelled" >> $GITHUB_OUTPUT
103103
exit 1
104104
continue-on-error: true
105105
# Get the monorepo so we can test the connectors
@@ -109,14 +109,6 @@ jobs:
109109
with:
110110
repository: airbytehq/airbyte
111111
ref: master
112-
- name: Fetch last commit id from remote branch [PULL REQUESTS]
113-
if: github.event_name == 'pull_request' && steps.no_changes.outcome != 'failure'
114-
id: fetch_last_commit_id_pr
115-
run: echo "commit_id=$(git ls-remote --heads origin refs/heads/${{ github.head_ref }} | cut -f 1)" >> $GITHUB_OUTPUT
116-
- name: Fetch last commit id from remote branch [WORKFLOW DISPATCH]
117-
if: github.event_name == 'workflow_dispatch' && steps.no_changes.outcome != 'failure'
118-
id: fetch_last_commit_id_wd
119-
run: echo "commit_id=$(git rev-parse origin/${{ steps.extract_branch.outputs.branch }})" >> $GITHUB_OUTPUT
120112
- name: Test Connector
121113
if: steps.no_changes.outcome != 'failure'
122114
timeout-minutes: 90

.github/workflows/fix-pr-command.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ on:
1212
type: string
1313
required: false
1414

15-
env:
16-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
17-
1815
jobs:
1916
# This is copied from the `python_pytest.yml` file.
2017
# Only the first two steps of the job are different, and they check out the PR's branch.
@@ -51,8 +48,8 @@ jobs:
5148
id: pr-info
5249
run: |
5350
PR_JSON=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.inputs.pr }})
54-
echo "::set-output name=repo::$(echo "$PR_JSON" | jq -r .head.repo.full_name)"
55-
echo "::set-output name=branch::$(echo "$PR_JSON" | jq -r .head.ref)"
51+
echo "repo=$(echo "$PR_JSON" | jq -r .head.repo.full_name)" >> $GITHUB_OUTPUT
52+
echo "branch=$(echo "$PR_JSON" | jq -r .head.ref)" >> $GITHUB_OUTPUT
5653
env:
5754
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5855
shell: bash
@@ -104,7 +101,7 @@ jobs:
104101
- name: Check for changes
105102
id: git-diff
106103
run: |
107-
git diff --quiet && echo "No changes to commit" || echo "::set-output name=changes::true"
104+
git diff --quiet && echo "No changes to commit" || echo "changes=true" >> $GITHUB_OUTPUT
108105
shell: bash
109106

110107
# Commit changes (if any)
@@ -129,7 +126,7 @@ jobs:
129126
- name: Check for changes ('unsafe' fixes)
130127
id: git-diff-2
131128
run: |
132-
git diff --quiet && echo "No changes to commit" || echo "::set-output name=changes::true"
129+
git diff --quiet && echo "No changes to commit" || echo "changes=true" >> $GITHUB_OUTPUT
133130
shell: bash
134131

135132
- name: Commit 'unsafe' lint fixes

.github/workflows/pydoc_preview.yml renamed to .github/workflows/pdoc_preview.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- main
77
pull_request: {}
88

9-
env:
10-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
11-
129
jobs:
1310
preview_docs:
1411
runs-on: ubuntu-latest
@@ -31,10 +28,15 @@ jobs:
3128

3229
- name: Generate documentation
3330
run: |
31+
set -e
3432
poetry run poe docs-generate
33+
if [ ! -d "docs/generated" ]; then
34+
echo "Error: Documentation generation failed - docs/generated directory not found"
35+
exit 1
36+
fi
3537
3638
- name: Upload artifact
3739
uses: actions/upload-pages-artifact@v3
3840
with:
39-
# Upload entire repository
41+
# Upload generated documentation
4042
path: 'docs/generated'

.github/workflows/pydoc_publish.yml renamed to .github/workflows/pdoc_publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
1010

11-
env:
12-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
13-
1411
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1512
permissions:
1613
contents: read

.github/workflows/poetry-lock-command.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ on:
1212
type: string
1313
required: false
1414

15-
env:
16-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
17-
1815
jobs:
1916
poetry-lock-on-demand:
2017
name: On-Demand Poetry Lock
@@ -48,8 +45,8 @@ jobs:
4845
id: pr-info
4946
run: |
5047
PR_JSON=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.inputs.pr }})
51-
echo "::set-output name=repo::$(echo "$PR_JSON" | jq -r .head.repo.full_name)"
52-
echo "::set-output name=branch::$(echo "$PR_JSON" | jq -r .head.ref)"
48+
echo "repo=$(echo "$PR_JSON" | jq -r .head.repo.full_name)" >> $GITHUB_OUTPUT
49+
echo "branch=$(echo "$PR_JSON" | jq -r .head.ref)" >> $GITHUB_OUTPUT
5350
env:
5451
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5552
shell: bash
@@ -97,7 +94,7 @@ jobs:
9794
- name: Check for changes
9895
id: git-diff
9996
run: |
100-
git diff --quiet && echo "No changes to commit" || echo "::set-output name=changes::true"
97+
git diff --quiet && echo "No changes to commit" || echo "changes=true" >> $GITHUB_OUTPUT
10198
shell: bash
10299

103100
# Commit changes (if any)
@@ -127,7 +124,7 @@ jobs:
127124
128125
- name: Append success comment (no-op)
129126
uses: peter-evans/create-or-update-comment@v4
130-
if: steps.git-diff.outputs.changes != 'true' && steps.git-diff-2.outputs.changes != 'true'
127+
if: steps.git-diff.outputs.changes != 'true'
131128
with:
132129
comment-id: ${{ steps.first-comment-action.outputs.comment-id }}
133130
reactions: "+1"

.github/workflows/pypi_publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55

66
workflow_dispatch:
77

8-
env:
9-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
10-
118
jobs:
129
build:
1310
runs-on: ubuntu-latest

.github/workflows/python_lint.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- main
77
pull_request: {}
88

9-
env:
10-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
11-
129
jobs:
1310
ruff-lint-check:
1411
name: Ruff Lint Check
@@ -30,7 +27,7 @@ jobs:
3027
run: poetry install --all-extras
3128

3229
# Job-specifc step(s):
33-
- name: Format code
30+
- name: Run lint check
3431
run: poetry run ruff check .
3532

3633
ruff-format-check:

.github/workflows/python_pytest.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ on:
1313
- main
1414
pull_request: {}
1515

16-
env:
17-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
18-
1916
jobs:
2017
pytest-fast:
2118
name: Pytest (Fast)

.github/workflows/release_drafter.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
# pull_request_target:
1212
# types: [opened, reopened, synchronize]
1313

14-
env:
15-
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}
16-
1714
jobs:
1815
update_release_draft:
1916
permissions:

0 commit comments

Comments
 (0)