Support searching for multiple error messages when retriggering a job #89
Workflow file for this run
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: 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 7 | |
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 88 | |
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 }} |