-
Notifications
You must be signed in to change notification settings - Fork 115
44 lines (38 loc) · 1.22 KB
/
retry-test-failures.yml
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
name: Retry Test Failures
on:
workflow_dispatch:
inputs:
run_id:
description: 'Run ID to check and retry'
default: ''
required: true
jobs:
check_results_and_retry_if_needed:
name: check-results-and-retry-if-needed
runs-on: ubuntu-20.04
steps:
- name: Get token for firebase-workflow-trigger
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.WORKFLOW_TRIGGER_APP_ID }}
private_key: ${{ secrets.WORKFLOW_TRIGGER_APP_PRIVATE_KEY }}
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch_name }}
fetch-depth: 0
submodules: false
- name: Install prerequisites
run: |
python scripts/gha/install_prereqs_desktop.py
python -m pip install requests
- name: Wait 3 minutes for run to finish
run: |
sleep 180
- name: Run test failure retry script
run: |
python scripts/gha/retry_test_failures.py --token '${{ steps.generate-token.outputs.token }}' --run_id '${{ github.event.inputs.run_id }}'