diff --git a/.github/workflows/k3d.yaml b/.github/workflows/k3d.yaml index 5d25acc..6d5d204 100644 --- a/.github/workflows/k3d.yaml +++ b/.github/workflows/k3d.yaml @@ -127,4 +127,20 @@ jobs: kubectl wait --for=condition=available deployment/pipe-sequence -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-sprite -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-throttler -n kerberos-hub --timeout=300s - kubectl get pods -A -o wide \ No newline at end of file + kubectl get pods -A -o wide + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"✅ K3d Deployment Successful! :rocket:\n*OS*: ${{ matrix.os }}\n*K3d Version*: ${{ matrix.k3d }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\" + }" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"❌ K3d Deployment Failed! :x:\n*OS*: ${{ matrix.os }}\n*K3d Version*: ${{ matrix.k3d }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\n*Run URL*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\" + }" $SLACK_WEBHOOK_URL \ No newline at end of file diff --git a/.github/workflows/kind.yaml b/.github/workflows/kind.yaml index e8fac65..a1bba31 100644 --- a/.github/workflows/kind.yaml +++ b/.github/workflows/kind.yaml @@ -123,4 +123,20 @@ jobs: kubectl wait --for=condition=available deployment/pipe-sequence -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-sprite -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-throttler -n kerberos-hub --timeout=300s - kubectl get pods -A -o wide \ No newline at end of file + kubectl get pods -A -o wide + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"✅ Kind Deployment Successful! :rocket:\n*OS*: ${{ matrix.os }}\n*Kind Version*: ${{ matrix.kind }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\" + }" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"❌ Kind Deployment Failed! :x:\n*OS*: ${{ matrix.os }}\n*Kind Version*: ${{ matrix.kind }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\n*Run URL*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\" + }" $SLACK_WEBHOOK_URL \ No newline at end of file diff --git a/.github/workflows/kustomize.yaml b/.github/workflows/kustomize.yaml index 0cb862c..7e0eabe 100644 --- a/.github/workflows/kustomize.yaml +++ b/.github/workflows/kustomize.yaml @@ -28,4 +28,20 @@ jobs: kubectl get pods -A -o wide kubectl get sc - name: Checkout repository - uses: actions/checkout@v2 \ No newline at end of file + uses: actions/checkout@v2 + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"✅ Kustomize Deployment Successful! :rocket:\n*OS*: ${{ matrix.os }}\n*Kind Version*: ${{ matrix.kind }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\" + }" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"❌ Kustomize Deployment Failed! :x:\n*OS*: ${{ matrix.os }}\n*Kind Version*: ${{ matrix.kind }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\n*Run URL*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\" + }" $SLACK_WEBHOOK_URL \ No newline at end of file diff --git a/.github/workflows/microk8s.yaml b/.github/workflows/microk8s.yaml index f311b77..58faa65 100644 --- a/.github/workflows/microk8s.yaml +++ b/.github/workflows/microk8s.yaml @@ -117,4 +117,21 @@ jobs: kubectl wait --for=condition=available deployment/pipe-sequence -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-sprite -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-throttler -n kerberos-hub --timeout=300s - kubectl get pods -A -o wide \ No newline at end of file + kubectl get pods -A -o wide + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"✅ MicroK8s Deployment Successful! :rocket:\n*OS*: ${{ matrix.os }}\n*MicroK8s Version*: ${{ matrix.microk8s }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\" + }" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"❌ MicroK8s Deployment Failed! :x:\n*OS*: ${{ matrix.os }}\n*MicroK8s Version*: ${{ matrix.microk8s }}\n*Workflow*: ${{ github.workflow }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\n*Run URL*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\" + }" $SLACK_WEBHOOK_URL + \ No newline at end of file diff --git a/.github/workflows/pr-description.yml b/.github/workflows/pr-description.yml index d0bfdb4..19119dd 100644 --- a/.github/workflows/pr-description.yml +++ b/.github/workflows/pr-description.yml @@ -17,3 +17,19 @@ jobs: azure_openai_endpoint: ${{ secrets.AZURE_OPENAI_ENDPOINT }} azure_openai_version: ${{ secrets.AZURE_OPENAI_VERSION }} overwrite_description: true + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"✅ PR Description Auto-fill Successful! :robot_face:\n*Workflow*: ${{ github.workflow }}\n*PR*: ${{ github.event.pull_request.title }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\" + }" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{ + \"text\": \"❌ PR Description Auto-fill Failed! :x:\n*Workflow*: ${{ github.workflow }}\n*PR*: ${{ github.event.pull_request.title }}\n*Triggered by*: ${{ github.actor }}\n*Repository*: ${{ github.repository }}\n*Run URL*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\" + }" $SLACK_WEBHOOK_URL