Skip to content

Commit

Permalink
register CDK as slash command, with status updates to original commen…
Browse files Browse the repository at this point in the history
…t ID
  • Loading branch information
aaronsteers committed Sep 22, 2023
1 parent c999026 commit 275bd7a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish-java-cdk-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/slash-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
legacy-test
test-performance
publish
publish-java-cdk
legacy-publish
connector-performance
static-args: |
Expand Down

0 comments on commit 275bd7a

Please sign in to comment.