-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [ISSUE #19981] adding slack notification to airbyte cdk release * [ISSUE #19981] change default release-type and change slack channel * [ISSUE #19981] code review - precising error messages * commit for CI * commit for CI * commit for CI
- Loading branch information
Showing
1 changed file
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ on: | |
type: choice | ||
description: "Choose the type of version upgrade : major|minor|patch" | ||
options: | ||
- none | ||
- major | ||
- minor | ||
- patch | ||
- none | ||
required: true | ||
skip-publish-test: | ||
description: 'By default, the job publishes to Test PyPi. Use "true" to only publish to actual PyPi servers.' | ||
|
@@ -59,6 +59,34 @@ jobs: | |
commit_message: 🤖 Bump ${{ github.event.inputs.release-type }} version of Airbyte CDK | ||
commit_user_name: Octavia Squidington III | ||
commit_user_email: [email protected] | ||
- name: Post failure to Slack channel dev-connectors-extensibility | ||
if: !success() | ||
uses: slackapi/[email protected] | ||
continue-on-error: true | ||
with: | ||
channel-id: C04J1M66D8B | ||
payload: | | ||
{ | ||
"text": "Error during `bump-version` while publishing Airbyte CDK!" | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Error while publishing Airbyte CDK!" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "See details on <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} | ||
|
||
build-cdk: | ||
needs: bump-version | ||
|
@@ -78,6 +106,34 @@ jobs: | |
ref: ${{ github.event.inputs.gitref }} | ||
- name: Build CDK Package | ||
run: SUB_BUILD=CONNECTORS_BASE ./gradlew --no-daemon --no-build-cache :airbyte-cdk:python:build | ||
- name: Post failure to Slack channel dev-connectors-extensibility | ||
if: !success() | ||
uses: slackapi/[email protected] | ||
continue-on-error: true | ||
with: | ||
channel-id: C04J1M66D8B | ||
payload: | | ||
{ | ||
"text": "Error during `build-cdk` while publishing Airbyte CDK!" | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Error while publishing Airbyte CDK!" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "See details on <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} | ||
|
||
publish-cdk: | ||
needs: build-cdk | ||
|
@@ -110,3 +166,59 @@ jobs: | |
env: | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | ||
- name: Post success to Slack channel dev-connectors-extensibility | ||
if: success() | ||
uses: slackapi/[email protected] | ||
continue-on-error: true | ||
with: | ||
channel-id: C04J1M66D8B | ||
payload: | | ||
{ | ||
"text": "A new version of Airbyte CDK has been released!" | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "A new version of Airbyte CDK has been released!\n\n" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "See details on <https://github.com/airbytehq/airbyte/blob/master/airbyte-cdk/python/CHANGELOG.md?plain=1#L3-L4|CHANGELOG.md> and <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} | ||
- name: Post failure to Slack channel dev-connectors-extensibility | ||
if: !success() | ||
uses: slackapi/[email protected] | ||
continue-on-error: true | ||
with: | ||
channel-id: C04J1M66D8B | ||
payload: | | ||
{ | ||
"text": "Error during `publish-cdk` while publishing Airbyte CDK!" | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Error while publishing Airbyte CDK!" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "See details on <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} |