Skip to content

Commit

Permalink
[ISSUE #19981] adding slack notification to airbyte cdk release
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Jan 11, 2023
1 parent e55a7c6 commit 3fe51b9
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions .github/workflows/publish-cdk-command-manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,34 @@ jobs:
commit_message: 🤖 Bump ${{ github.event.inputs.release-type }} version of Airbyte CDK
commit_user_name: Octavia Squidington III
commit_user_email: octavia-squidington-iii@users.noreply.github.com
- name: Post failure to Slack channel dev-connectors-extensibility
if: !success()
uses: slackapi/slack-github-action@v1.23.0
continue-on-error: true
with:
channel-id: C02TL38U5L7
payload: |
{
"text": "Error 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
Expand All @@ -77,6 +105,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/slack-github-action@v1.23.0
continue-on-error: true
with:
channel-id: C02TL38U5L7
payload: |
{
"text": "Error 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
Expand Down Expand Up @@ -109,3 +165,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/slack-github-action@v1.23.0
continue-on-error: true
with:
channel-id: C02TL38U5L7
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/slack-github-action@v1.23.0
continue-on-error: true
with:
channel-id: C02TL38U5L7
payload: |
{
"text": "Error 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 }}

0 comments on commit 3fe51b9

Please sign in to comment.