qiaojunfeng commited on
Commit
32d2da0
·
1 Parent(s): c692b0b
Files changed (1) hide show
  1. make_artifacts.jl +5 -1
make_artifacts.jl CHANGED
@@ -109,7 +109,7 @@ function list_previous_artifacts()
109
  # to create the artifacts branch
110
  files = split(read(`git ls-tree -r --name-only $deploy_branch`, String))
111
  filter!(f -> endswith(f, ".tar.gz"), files)
112
- return Dict(f => git_hash(f; deploy_branch) for f in files)
113
  end
114
 
115
  function list_new_folders()
@@ -156,6 +156,10 @@ function (@main)(args)
156
  end
157
 
158
  new_folders = list_new_folders()
 
 
 
 
159
 
160
  if !("dryrun" in args)
161
  clean_artifacts_dir() || return
 
109
  # to create the artifacts branch
110
  files = split(read(`git ls-tree -r --name-only $deploy_branch`, String))
111
  filter!(f -> endswith(f, ".tar.gz"), files)
112
+ return Dict(f => git_hash(f; branch=deploy_branch) for f in files)
113
  end
114
 
115
  function list_new_folders()
 
156
  end
157
 
158
  new_folders = list_new_folders()
159
+ if isempty(new_folders)
160
+ println("No new folders to process.")
161
+ return
162
+ end
163
 
164
  if !("dryrun" in args)
165
  clean_artifacts_dir() || return