Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrwatson committed Dec 9, 2024
1 parent ff7da31 commit 8b17e98
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/run-api-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,13 @@ jobs:
steps:
- run: |
VALID_FAILURE_EXIT_CODES="53"
# Create an array to store exit codes
exit_codes=()
# Loop through each matrix job
for result in "${{ needs.api-test[*].outputs.exit_code }}"; do
echo "Exit code from branch: $result"
exit_codes+=("$result")
done
echo "consolidated:"
echo "{{ needs.api-test.outputs.exit_code | join(",") }}"
echo "alt:"
echo "{{ needs.api-test.outputs.exit_code }}"
exit_codes='[{{ needs.api-test.outputs.exit_code | join(",") }}] | jq -r '.[]''
# Check if any exit code is "bad"
for code in "${exit_codes[@]}"; do
for code in $exit_codes; do
if echo "$VALID_FAILURE_EXIT_CODES" | grep -qw "$code"; then
echo "Bad exit code detected: $code"
curl --location "${{ secrets.FIREHYDRANT_WEBHOOK_URL }}" \
Expand Down

0 comments on commit 8b17e98

Please sign in to comment.