Update .gitea/workflows/deploy-ci.yaml
All checks were successful
Update Community Skins README / gather-skins (push) Successful in 10s
Update Community Skins README / generate-readme (push) Successful in 3s
Update Community Skins README / commit-readme (push) Successful in 3s

This commit is contained in:
Arlind
2025-06-27 12:04:19 +02:00
parent 5a20827a5e
commit 61274f43fb

View File

@@ -50,7 +50,7 @@ jobs:
set -eo pipefail set -eo pipefail
mkdir -p "$ARTIFACT_PATH" mkdir -p "$ARTIFACT_PATH"
repo_file="$REPO_LIST_FILE" repo_file="$REPO_LIST_FILE"
echo "🔍 Scanning users for repositories with 'Skins' directory" echo "🔍 Scanning users for repositories with 'hardlink-songs-folder.bat' file"
page=1 page=1
total_valid=0 total_valid=0
@@ -74,7 +74,7 @@ jobs:
repo=$(echo "$repos_json" | jq -r ".[$j].name") repo=$(echo "$repos_json" | jq -r ".[$j].name")
contents=$(curl -sSL -H "Authorization: token ${{ secrets.TOKEN }}" "$GITEA_API/repos/$owner/$repo/contents?ref=main") contents=$(curl -sSL -H "Authorization: token ${{ secrets.TOKEN }}" "$GITEA_API/repos/$owner/$repo/contents?ref=main")
if echo "$contents" | jq -e '.[] | select(.type=="dir" and .name=="Skins")' > /dev/null; then if echo "$contents" | jq -e '.[] | select(.type == "file" and .name == "hardlink-songs-folder.bat")' > /dev/null; then
echo "$owner/$repo" >> "$repo_file" echo "$owner/$repo" >> "$repo_file"
echo " ✅ Valid repo found: $owner/$repo" echo " ✅ Valid repo found: $owner/$repo"
total_valid=$((total_valid + 1)) total_valid=$((total_valid + 1))