-
Notifications
You must be signed in to change notification settings - Fork 383
45 lines (43 loc) · 1.29 KB
/
flakiness.yml
File metadata and controls
45 lines (43 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "[Flakiness Report]"
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * 1"
jobs:
flakiness:
runs-on: ubuntu-latest
permissions:
actions: read
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DAYS: "7"
OCCURRENCES: "2"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout-cone-mode: false
sparse-checkout: |
.github
package.json
scripts
yarn.lock
- uses: ./.github/actions/node
with:
version: active
- run: yarn install --frozen-lockfile --ignore-scripts
- run: node scripts/flakiness.mjs
- run: cat flakiness.md >> $GITHUB_STEP_SUMMARY
- id: slack
run: echo "report=$(cat flakiness.txt)" >> $GITHUB_OUTPUT
- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v2.1.0
if: github.event_name == 'schedule'
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID }}
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "${{ steps.slack.outputs.report }}"