Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Slack notification job to the CI + CD workflow #1066

Merged
merged 9 commits into from
Apr 4, 2023
8 changes: 1 addition & 7 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,6 @@ jobs:
run_id = os.environ.get("RUN_ID")

jobs = ["emit-docs", "publish-images", "deploy-frontend", "deploy-api"]
emojis = {
"success": ":tadaco:",
"cancelled": ":no_good:",
"failure": ":alert:",
"skipped": ":warning:",
}

results = {}
counts = defaultdict(lambda: 0)
Expand All @@ -803,7 +797,7 @@ jobs:
"fields": [
{
"type": "mrkdwn",
"text": f"*{job_name}:*\n{emojis[result]} {result}",
"text": f"*{job_name}:*\n:workflow-{result}: {result}",
dhruvkb marked this conversation as resolved.
Show resolved Hide resolved
}
for job_name, result in results.items()
],
Expand Down