From 827f59721c342732b9d4b7f180862a5288242158 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Tue, 27 Feb 2024 11:02:50 +0100 Subject: [PATCH] check string --- .github/workflows/rerun-failed-run.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/rerun-failed-run.yml b/.github/workflows/rerun-failed-run.yml index c3ff6ad3..42cf54ca 100644 --- a/.github/workflows/rerun-failed-run.yml +++ b/.github/workflows/rerun-failed-run.yml @@ -46,10 +46,9 @@ jobs: gh config set pager cat logs=$(gh run view ${{ inputs.run_id }} -R ${{ inputs.repository }} --exit-status || true) echo "Logs coming from run with id: ${{ inputs.run_id }}" - echo "Inputted error message: ${{ inputs.error_message }}" errors='${{ inputs.error_message }}' - readarray -t array < <(echo "$errors" | jq -r '.[]') + readarray -t array < <(echo '$errors' | jq -r '.[]') for error in "${array[@]}"; do echo "error: $error" @@ -58,13 +57,6 @@ jobs: echo "error_no_quotes: $error_no_quotes" error_count=$(echo "$logs" | grep -c "some random string") echo "error_count: $error_count" - if [ "$error_count" -gt 0 ]; then - echo "rerun=true" >> "$GITHUB_OUTPUT" - echo "Error message $error_no_quotes found in logs so the previous run has finished with that error." - else - echo "rerun=false" >> "$GITHUB_OUTPUT" - echo "Error message $error_no_quotes not found in logs" - fi done - name: Rerun run with id ${{ inputs.run_id }} for ${{ inputs.repository }} repository