Skip to content

Commit 1bb1320

Browse files
authored
feat: allow skip sending results to discord (#388)
1 parent 9cc457b commit 1bb1320

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ecosystem-ci-selected.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ on:
7373
- vitest
7474
- vuepress
7575
- waku
76+
sendDiscordReport:
77+
description: "send results to discord"
78+
type: boolean
7679
jobs:
7780
execute-selected-suite:
7881
timeout-minutes: 30
@@ -99,7 +102,7 @@ jobs:
99102
--repo ${{ inputs.repo }}
100103
${{ inputs.suite }}
101104
id: ecosystem-ci-run
102-
- if: always()
105+
- if: inputs.sendDiscordReport || github.event_name != 'workflow_dispatch'
103106
run: pnpm tsx discord-webhook.ts
104107
env:
105108
WORKFLOW_NAME: ci-selected

.github/workflows/ecosystem-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ on:
3737
required: true
3838
type: string
3939
default: "vitejs/vite"
40+
sendDiscordReport:
41+
description: "send results to discord"
42+
type: boolean
4043
repository_dispatch:
4144
types: [ecosystem-ci]
4245
jobs:
@@ -102,7 +105,7 @@ jobs:
102105
--repo ${{ inputs.repo || github.event.client_payload.repo || 'vitejs/vite' }}
103106
${{ matrix.suite }}
104107
id: ecosystem-ci-run
105-
- if: always()
108+
- if: inputs.sendDiscordReport || github.event_name != 'workflow_dispatch'
106109
run: pnpm tsx discord-webhook.ts
107110
env:
108111
WORKFLOW_NAME: ci

0 commit comments

Comments
 (0)