mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
98872a1b09
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51627 This cdhanges are inspired by https://stackoverflow.com/a/78314483 and they should help with the stability of E2E tests on main. Most of the time, those tests fails because of flakyness in the E2E infrastructure on GHA. Usually, rerunning the tests manually makes the workflow pass. These couple of jobs automatically reruns the workflow up to 3 times in case one of the E2E tests fails ## Changelog: [Internal] - improve CI by rerunning the workflow if the E2E tests fails Reviewed By: cortinico Differential Revision: D75449445 fbshipit-source-id: d9c235c76007a3bda048ec76b62710ca930cf252
20 lines
552 B
YAML
20 lines
552 B
YAML
name: Retry workflow
|
|
# Based on https://stackoverflow.com/a/78314483
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
run_id:
|
|
required: true
|
|
jobs:
|
|
rerun:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: rerun ${{ inputs.run_id }}
|
|
env:
|
|
GH_REPO: ${{ github.repository }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
|
|
gh run rerun ${{ inputs.run_id }} --failed
|