From 8a13546343f189f4d65e7fed6d30cec71c7b0a28 Mon Sep 17 00:00:00 2001 From: Azathothas Date: Fri, 27 Sep 2024 20:23:20 +0545 Subject: [PATCH] TOTAL_PACKAGES --- .../workflows/healthchecks_housekeeping.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/healthchecks_housekeeping.yaml b/.github/workflows/healthchecks_housekeeping.yaml index 9667a4b..3ec7c79 100644 --- a/.github/workflows/healthchecks_housekeeping.yaml +++ b/.github/workflows/healthchecks_housekeeping.yaml @@ -178,6 +178,24 @@ jobs: fi continue-on-error: true + - name: Update TOTAL_PACKAGES + run: | + #Presets + set +x ; set +e + #--------------# + #Presets + set +x ; set +e + #--------------# + ##aarch64-Linux/ + unset TOTAL_PACKAGES + TOTAL_PACKAGES="$(curl -qfsSL "https://huggingface.co/datasets/Azathothas/Toolpacks-Extras/resolve/main/METADATA.json" | jq '.[] | select(.host == "aarch64-Linux") | .main' | jq -r '.[].name' | sort -u | wc -l)" && export TOTAL_PACKAGES="${TOTAL_PACKAGES}" + sed 's#\(tree/main/aarch64-Linux)| \)[0-9]*\( |.*\)#\1'"${TOTAL_PACKAGES}"'\2#' -i "${GITHUB_WORKSPACE}/main/README.md" + ##x86_64-Linux/ + unset TOTAL_PACKAGES + TOTAL_PACKAGES="$(curl -qfsSL "https://huggingface.co/datasets/Azathothas/Toolpacks-Extras/resolve/main/METADATA.json" | jq '.[] | select(.host == "x86_64-Linux") | .main' | jq -r '.[].name' | sort -u | wc -l)" && export TOTAL_PACKAGES="${TOTAL_PACKAGES}" + sed 's#\(tree/main/x86_64-Linux)| \)[0-9]*\( |.*\)#\1'"${TOTAL_PACKAGES}"'\2#' -i "${GITHUB_WORKSPACE}/main/README.md" + continue-on-error: true + - name: Get DateTime run: | #Presets