From 5114dd430efc327c7a31987b1bb2929f921be440 Mon Sep 17 00:00:00 2001 From: Fabio Casolari Date: Sun, 23 Nov 2025 18:33:09 +0000 Subject: [PATCH] Update .gitea/workflows/update-factorio-modlist.yml --- .gitea/workflows/update-factorio-modlist.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/update-factorio-modlist.yml b/.gitea/workflows/update-factorio-modlist.yml index 176530f..192c5a1 100644 --- a/.gitea/workflows/update-factorio-modlist.yml +++ b/.gitea/workflows/update-factorio-modlist.yml @@ -18,7 +18,7 @@ jobs: run: | # Prende la lista di file nella root del repo response=$(curl -s -H "Authorization: token $GITEA_TOKEN" \ - "$GITEA_API_URL/repos/$OWNER/$REPO/contents?ref=$BRANCH") + "$GITEA_API_URL/repos/$OWNER/$REPO/contents/Factorio?ref=$BRANCH") # Filtra solo i file .zip e crea array JSON zip_files=$(echo "$response" | jq -r '.[] | select(.type=="file") | select(.name|endswith(".zip")) | .name') @@ -38,7 +38,7 @@ jobs: BRANCH: main run: | response=$(curl -s -H "Authorization: token $GITEA_TOKEN" \ - "$GITEA_API_URL/repos/$OWNER/$REPO/contents/mods.json?ref=$BRANCH") + "$GITEA_API_URL/repos/$OWNER/$REPO/contents/Factorio/mods.json?ref=$BRANCH") sha=$(echo "$response" | jq -r '.sha // empty') if [ -n "$sha" ]; then curl -X DELETE -H "Authorization: token $GITEA_TOKEN" \ @@ -62,4 +62,4 @@ jobs: curl -X PUT -H "Authorization: token $GITEA_TOKEN" \ -H "Content-Type: application/json" \ -d "{\"content\":\"$content\",\"branch\":\"$BRANCH\",\"message\":\"Update mods.json\"}" \ - "$GITEA_API_URL/repos/$OWNER/$REPO/contents/mods.json" \ No newline at end of file + "$GITEA_API_URL/repos/$OWNER/$REPO/contents/Factorio/mods.json" \ No newline at end of file