Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Jan 31, 2025
1 parent ea60439 commit c99fec2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/schedule_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ jobs:
' | jq . > "${SYSTMP}/pkgforge/SBUILD_LIST.json"
##Set Input (100 builds)
BUILD_LIST="$(jq -c '[.[] | select(._disabled == false) | {pkg_family, ghcr_url: .ghcr_pkg, sbuild_url: .build_script, rebuild}] | .[:100]' "${SYSTMP}/pkgforge/SBUILD_LIST.json")"
echo "build_list=${BUILD_LIST}" >> "${GITHUB_OUTPUT}"
##Validate Input
if [ -n "${BUILD_LIST}" ] && jq -e . <<<"${BUILD_LIST}" >/dev/null 2>&1; then
ESCAPED_BUILD_LIST="$(echo "${BUILD_LIST}" | jq -c . | jq -R .)"
echo "build_list=$(echo "${ESCAPED_BUILD_LIST}")" >> "${GITHUB_OUTPUT}"
else
if ! echo "${BUILD_LIST}" | jq -e 'type == "array" and length > 0' >/dev/null; then
echo -e "\n[-] Input Json is likely Invalid\n"
echo "${BUILD_LIST}" | jq .
exit 1
else
echo -e "\n[+] Generated Input Json\n"
echo "${BUILD_LIST}" | jq .
fi
continue-on-error: false

Expand All @@ -80,7 +81,7 @@ jobs:
strategy:
fail-fast: false
matrix:
package: ${{ fromJSON(fromJSON(needs.pre-trigger-build.outputs.build_list)) }}
package: ${{ fromJson(needs.pre-trigger-build.outputs.build_list) }}
steps:
- name: Trigger Matrix Builds
if: ${{ toJson(matrix.package) != '{}' }}
Expand Down

0 comments on commit c99fec2

Please sign in to comment.