Skip to content

Rerun failed emulator tests #266

Rerun failed emulator tests

Rerun failed emulator tests #266

name: Rerun failed emulator tests
permissions:
contents: write
on:
workflow_run:
workflows: ["Android Emulator tests"]
types:
- completed
jobs:
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 2 }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive
- run: gh run rerun ${{ github.event.workflow_run.id }} --failed