Update update-factorio-modlist.yml
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user