Skip to content

Commit 22236f2

Browse files
authored
chore: only notify about CI failure on main if required job fails (coder#16114)
This should be the last PR to get this working Looks like the `nightly-gauntlet` is working as expected, and this is a clone of that. --------- Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 24dd8a1 commit 22236f2

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,8 +1252,10 @@ jobs:
12521252
make sqlc-vet
12531253
12541254
notify-slack-on-failure:
1255+
needs:
1256+
- required
12551257
runs-on: ubuntu-latest
1256-
if: always() && failure() && github.ref == 'refs/heads/main'
1258+
if: failure() && github.ref == 'refs/heads/main'
12571259

12581260
steps:
12591261
- name: Send Slack notification
@@ -1276,10 +1278,6 @@ jobs:
12761278
"type": "mrkdwn",
12771279
"text": "*Workflow:*\n${{ github.workflow }}"
12781280
},
1279-
{
1280-
"type": "mrkdwn",
1281-
"text": "*Failed Job:*\n${{ github.job }}"
1282-
},
12831281
{
12841282
"type": "mrkdwn",
12851283
"text": "*Committer:*\n${{ github.actor }}"

.github/workflows/nightly-gauntlet.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ jobs:
101101
"type": "mrkdwn",
102102
"text": "*Workflow:*\n${{ github.workflow }}"
103103
},
104-
{
105-
"type": "mrkdwn",
106-
"text": "*Failed Job:*\n${{ github.job }}"
107-
},
108104
{
109105
"type": "mrkdwn",
110106
"text": "*Committer:*\n${{ github.actor }}"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy