Skip to content

Commit

Permalink
ci: add 1 Browserstack auto-retry
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 24, 2023
1 parent 3729539 commit 018dfab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/retry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Retry

on:
workflow_run:
workflows: [Browserstack]
types:
- completed

jobs:
retry:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }}
steps:
- run: gh api -XPOST ${{ github.event.workflow_run.rerun_url }}-failed-jobs
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 018dfab

Please sign in to comment.