-
Notifications
You must be signed in to change notification settings - Fork 383
43 lines (41 loc) · 1.22 KB
/
flakiness.yml
File metadata and controls
43 lines (41 loc) · 1.22 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
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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
sparse-checkout-cone-mode: false
sparse-checkout: |
.github
scripts
- uses: ./.github/actions/node
with:
version: ''
- run: npm install octokit
- 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@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # 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 }}"