From 2ac776cfda5c2859324f547f3e53b63f7816678d Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 7 Nov 2024 16:25:29 -0800 Subject: [PATCH] CI: disable retries on Actions (#33960) * no retries * red --- .github/workflows/setup/action.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/setup/action.yaml b/.github/workflows/setup/action.yaml index 701675942f..1315ba989e 100644 --- a/.github/workflows/setup/action.yaml +++ b/.github/workflows/setup/action.yaml @@ -20,6 +20,18 @@ runs: echo "You should not run this action directly. Use setup-with-retry instead" exit 1 + - shell: bash + name: No retries! + run: | + if [ "${{ github.run_attempt }}" -gt 1 ]; then + echo -e "\033[31m" + echo "##################################################" + echo " Retries not allowed! Fix the flaky test! " + echo "##################################################" + echo -e "\033[0m" + exit 1 + fi + # do this after checkout to ensure our custom LFS config is used to pull from GitLab - shell: bash run: git lfs pull