Skip to content

Commit

Permalink
ci: no prev demos is not an error
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Jan 2, 2025
1 parent 54e75a7 commit 9f63e1d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux'
id: download-prev-demos
uses: actions/download-artifact@v4
continue-on-error: true
with:
name: demos-develop-${{ runner.os }}
path: demos-previous
Expand All @@ -682,6 +683,13 @@ jobs:
LOCAL_DEMOS_DIR="./demos/"
PREV_DEMOS_DIR="./demos-previous/"
DIFF_DIR="./demos-diff/"
# Check if PREV_DEMOS_DIR exists and is not empty
if [[ ! -d $PREV_DEMOS_DIR || -z $(ls -A $PREV_DEMOS_DIR) ]]; then
echo "No previous demos found."
echo "diff=false" >> $GITHUB_OUTPUT
exit 0
fi
# Create directories if they don't exist
mkdir -p $PREV_DEMOS_DIR $DIFF_DIR
Expand Down

0 comments on commit 9f63e1d

Please sign in to comment.