07b2c9c54a2097dd2302215716c69f2c74704d17

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

Slack the CD workflow

Diff

 1diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
 2index 9d332865b2283bfdc5dc82aca5baad98bcbfa8bc..d5ea9644be4d6743820b8ee961fc7c67abaa0307 100644
 3--- a/.github/workflows/cd.yml
 4+++ b/.github/workflows/cd.yml
 5@@ -156,3 +156,22 @@ jobs:
 6       if: github.ref == 'refs/heads/main' && github.event_name == 'push'
 7       run: terraform apply -auto-approve ${{ steps.tfvars.outputs.vars }}
 8 
 9+
10+  slack-workflow-status:
11+    if: always()
12+    name: Post Workflow Status To Slack
13+    needs:
14+      - cd
15+    runs-on: ubuntu-latest
16+    steps:
17+      - name: Slack Workflow Notification
18+        uses: Gamesight/slack-workflow-status@master
19+        with:
20+          # Required Input
21+          repo_token: ${{ secrets.GITHUB_TOKEN }}
22+          slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
23+          # Optional Input
24+          channel: '#devops'
25+          name: "${{ github.repository }} 🥤 workflow"
26+          icon_emoji: ':cup_with_straw:'
27+          icon_url: 'https://avatars.githubusercontent.com/u/57376114?s=200&v=4'