From 7a1cbb3b2edfb693013f3343566c47ce5178aaa1 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Tue, 30 Jul 2024 13:03:16 -0600 Subject: [PATCH] allow gh run download to fail --- .github/workflows/playwright.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index eaa15f15..379cb338 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -34,13 +34,11 @@ jobs: while [ $attempt -lt $max_attempts ]; do # Attempt to download the artifacts. - gh run download -n status-8.1-${{ github.sha }} - gh run download -n status-8.2-${{ github.sha }} - gh run download -n status-8.3-${{ github.sha }} + gh run download -n status-8.1-${{ github.sha }} || true + gh run download -n status-8.2-${{ github.sha }} || true + gh run download -n status-8.3-${{ github.sha }} || true if [ -f status-8.1-${{ github.sha }}.txt ] && [ -f status-8.2-${{ github.sha }}.txt ] && [ -f status-8.3-${{ github.sha }}.txt ]; then - ls status-*.txt - echo "All status files found." success=1 break else @@ -164,9 +162,9 @@ jobs: while [ $attempt -lt $max_attempts ]; do # Attempt to download the artifacts. - gh run download -n status-8.1-${{ github.sha }} - gh run download -n status-8.2-${{ github.sha }} - gh run download -n status-8.3-${{ github.sha }} + gh run download -n status-8.1-${{ github.sha }} || true + gh run download -n status-8.2-${{ github.sha }} || true + gh run download -n status-8.3-${{ github.sha }} || true if [ -f status-8.1-${{ github.sha }}.txt ] && [ -f status-8.2-${{ github.sha }}.txt ] && [ -f status-8.3-${{ github.sha }}.txt ]; then success=1 @@ -297,9 +295,9 @@ jobs: while [ $attempt -lt $max_attempts ]; do # Attempt to download the artifacts. - gh run download -n status-8.1-${{ github.sha }} - gh run download -n status-8.2-${{ github.sha }} - gh run download -n status-8.3-${{ github.sha }} + gh run download -n status-8.1-${{ github.sha }} || true + gh run download -n status-8.2-${{ github.sha }} || true + gh run download -n status-8.3-${{ github.sha }} || true if [ -f status-8.1-${{ github.sha }}.txt ] && [ -f status-8.2-${{ github.sha }}.txt ] && [ -f status-8.3-${{ github.sha }}.txt ]; then success=1