Skip to content

Support searching for multiple error messages when retriggering a job #102

Support searching for multiple error messages when retriggering a job

Support searching for multiple error messages when retriggering a job #102

Workflow file for this run

name: An action to test how to rerun jobs
on:
pull_request
jobs:
doesntfail:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Does fail
run: echo $(date +"%T")
fails:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Fail
run: exit 6
rerun-failed-jobs:
needs:
- doesntfail
- fails
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-latest
steps:
- name: Retrigger job
uses: camunda/infra-global-github-actions/rerun-failed-run@gh-672
with:
error-message: |
Process completed with exit code 7
Process completed with exit code 99
run-id: ${{ github.run_id }}
repository: ${{ github.repository }}
vault-addr: ${{ secrets.VAULT_ADDR }}
vault-role-id: ${{ secrets.VAULT_ROLE_ID }}
vault-secret-id: ${{ secrets.VAULT_SECRET_ID }}