Skip to content

Commit

Permalink
make the files unique
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jul 30, 2024
1 parent 896d99b commit 97b1edc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ jobs:
if: failure()
run: |
# In the case of a failure, remove the previous status, whatever it was, and update it to 1.
if [ -f status-${{ matrix.php-version }}.txt ]; then
rm status-${{ matrix.php-version }}.txt
if [ -f status-${{ matrix.php-version }}-${{ github.sha }}.txt ]; then
rm status-${{ matrix.php-version }}-${{ github.sha }}.txt
fi
echo "1" > status-${{ matrix.php-version }}.txt
echo "1" > status-${{ matrix.php-version }}-${{ github.sha }}.txt
- name: Create success status artifact
if: success()
run: |
# Only create a status file if it doesn't already exist.
if [ ! -f status-${{ matrix.php-version }}.txt ]; then
echo "0" > status-${{ matrix.php-version }}.txt
if [ ! -f status-${{ matrix.php-version }}-${{ github.sha }}.txt ]; then
echo "0" > status-${{ matrix.php-version }}-${{ github.sha }}.txt
fi
24 changes: 12 additions & 12 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
while [ $attempt -lt $max_attempts ]; do
# Attempt to download the artifacts.
gh run download -n status-8.1
gh run download -n status-8.2
gh run download -n status-8.3
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 }}
if [ -f status-8.1.txt ] && [ -f status-8.2.txt ] && [ -f status-8.3.txt ]; then
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
Expand Down Expand Up @@ -164,11 +164,11 @@ jobs:
while [ $attempt -lt $max_attempts ]; do
# Attempt to download the artifacts.
gh run download -n status-8.1
gh run download -n status-8.2
gh run download -n status-8.3
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 }}
if [ -f status-8.1.txt ] && [ -f status-8.2.txt ] && [ -f status-8.3.txt ]; then
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
break
else
Expand Down Expand Up @@ -297,11 +297,11 @@ jobs:
while [ $attempt -lt $max_attempts ]; do
# Attempt to download the artifacts.
gh run download -n status-8.1
gh run download -n status-8.2
gh run download -n status-8.3
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 }}
if [ -f status-8.1.txt ] && [ -f status-8.2.txt ] && [ -f status-8.3.txt ]; then
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
break
else
Expand Down

0 comments on commit 97b1edc

Please sign in to comment.