File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -668,6 +668,7 @@ jobs:
668
668
if : startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux'
669
669
id : download-prev-demos
670
670
uses : actions/download-artifact@v4
671
+ continue-on-error : true
671
672
with :
672
673
name : demos-develop-${{ runner.os }}
673
674
path : demos-previous
@@ -682,6 +683,13 @@ jobs:
682
683
LOCAL_DEMOS_DIR="./demos/"
683
684
PREV_DEMOS_DIR="./demos-previous/"
684
685
DIFF_DIR="./demos-diff/"
686
+
687
+ # Check if PREV_DEMOS_DIR exists and is not empty
688
+ if [[ ! -d $PREV_DEMOS_DIR || -z $(ls -A $PREV_DEMOS_DIR) ]]; then
689
+ echo "No previous demos found."
690
+ echo "diff=false" >> $GITHUB_OUTPUT
691
+ exit 0
692
+ fi
685
693
686
694
# Create directories if they don't exist
687
695
mkdir -p $PREV_DEMOS_DIR $DIFF_DIR
You can’t perform that action at this time.
0 commit comments