Rerun Tests #1604
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rerun Tests | |
on: | |
workflow_run: | |
workflows: [CI Suite] | |
types: | |
- completed | |
jobs: | |
rerun_flaky_tests: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Rerun flaky tests | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const { rerunFlakyTests } = await import('${{ github.workspace }}/tools/pull_request_hooks/rerunFlakyTests.js') | |
await rerunFlakyTests({ github, context }) |