From 0552e59b257b018f91c90d23e4b66e7762630f01 Mon Sep 17 00:00:00 2001 From: LelieL91 <48968075+LelieL91@users.noreply.github.com> Date: Sun, 23 Nov 2025 20:11:13 +0100 Subject: [PATCH] Update update-factorio-modlist.yml --- .gitea/workflows/update-factorio-modlist.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/update-factorio-modlist.yml b/.gitea/workflows/update-factorio-modlist.yml index c431983..c4f8286 100644 --- a/.gitea/workflows/update-factorio-modlist.yml +++ b/.gitea/workflows/update-factorio-modlist.yml @@ -2,6 +2,10 @@ name: Update mods.json on: workflow_dispatch: + push: + branches: [ main ] + paths: + - 'Factorio/**' jobs: update-mods: @@ -16,12 +20,12 @@ jobs: REPO: FastDL BRANCH: main run: | - echo "Token length: ${#GITEA_TOKEN}" # debug + echo "Token length: ${#GITEA_TOKEN}" response=$(curl -s -H "Authorization: token $GITEA_TOKEN" \ "$GITEA_API_URL/repos/$OWNER/$REPO/contents/Factorio?ref=$BRANCH") - echo "API Response: $response" # debug + echo "API Response: $response" zip_files=$(echo "$response" \ | jq -r '.[] | select(.type=="file") | select(.name|endswith(".zip")) | .name')