forked from aws/karpenter-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 998 Bytes
/
deflake.yaml
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
name: Deflake
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
deflake:
if: github.repository == 'aws/karpenter'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
- name: Running tests 5 times to find flaky tests
id: run-deflake
run: make deflake
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: always()
name: Post commit status
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
-d '{"state":"${{ steps.run-deflake.outcome }}","target_url":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}","context":"Deflake Tests (cron)"}'