-
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.
register CDK as slash command, with status updates to original commen…
…t ID
- Loading branch information
1 parent
c999026
commit 275bd7a
Showing
2 changed files
with
24 additions
and
0 deletions.
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 |
---|---|---|
|
@@ -92,6 +92,13 @@ jobs: | |
needs: start-publish-docker-image-runner-0 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Link comment to workflow run | ||
if: github.event.inputs.comment-id | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
comment-id: ${{ github.event.inputs.comment-id }} | ||
body: | | ||
> :clock2: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -137,6 +144,22 @@ jobs: | |
env: | ||
CLOUDREPO_USER: ${{ secrets.CLOUDREPO_USER }} | ||
CLOUDREPO_PASSWORD: ${{ secrets.CLOUDREPO_PASSWORD }} | ||
- name: Add Success Comment | ||
if: github.event.inputs.comment-id && success() | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
comment-id: ${{ github.event.inputs.comment-id }} | ||
edit-mode: append | ||
body: | | ||
> :white_check_mark: Successfully published Java CDK ${{ env.CDK_VERSION }}! | ||
- name: Add Failure Comment | ||
if: github.event.inputs.comment-id && failure() | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
comment-id: ${{ github.event.inputs.comment-id }} | ||
edit-mode: append | ||
body: | | ||
> :x: Publish Java CDK ${{ env.CDK_VERSION }} failed! | ||
- name: "Post failure to Slack channel `#dev-connectors-extensibility-releases`" | ||
if: ${{ env.DRY_RUN == 'false' && failure() }} | ||
uses: slackapi/[email protected] | ||
|
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