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