Skip to content

Commit 1344921

Browse files
committed
handle empty pkgs
1 parent bcf4e96 commit 1344921

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/Breakage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
julia -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url = "https://github.com/JuliaRegistries/General.git"))'
3838
julia --project=.breakage -e 'using Pkg; Pkg.update(); Pkg.instantiate()'
3939
pkgs=$(julia --project=.breakage .breakage/get_jso_users.jl ${{ env.pkg }})
40+
if [[ -z "$pkgs" ]]; then
41+
pkgs="[]"
42+
fi
4043
vs='["latest", "stable"]'
4144
matrix=$(jq -cn --argjson deps "$pkgs" --argjson vers "$vs" '{pkg: $deps, pkgversion: $vers}') # don't escape quotes like many posts suggest
4245
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)