chore(ci): dispatch ClaudeBox to the v2 webhook (retire abandoned v1 SSH-tunnel path) #4378
Workflow file for this run
This file contains hidden or 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
| name: Notify Slack on Merge Train Events | |
| on: | |
| pull_request: | |
| types: [dequeued, closed] | |
| jobs: | |
| notify-dequeued: | |
| name: Notify Slack (Dequeued) | |
| runs-on: ubuntu-latest | |
| if: github.event.action == 'dequeued' && startsWith(github.event.pull_request.head.ref, 'merge-train/') && github.event.pull_request.merged != true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Send Slack notification | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} | |
| REF_NAME: ${{ github.event.pull_request.head.ref }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: ./ci3/merge_train_failure_slack_notify --dequeued | |
| notify-merged: | |
| name: Notify Slack (Merged) | |
| runs-on: ubuntu-latest | |
| if: github.event.action == 'closed' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'merge-train/') | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.base.ref }} | |
| - name: Send Slack notification | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| REF_NAME: ${{ github.event.pull_request.head.ref }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: ./ci3/merge_train_failure_slack_notify --merged |