Skip to content

Commit

Permalink
allow gh run download to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jul 30, 2024
1 parent 97b1edc commit 7a1cbb3
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a1cbb3

Please sign in to comment.