File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -88,19 +88,20 @@ jobs:
88
88
if : startsWith(github.ref, 'refs/tags/')
89
89
env :
90
90
BUTLER_API_KEY : ${{ secrets.ITCHIO_API_KEY }}
91
+ GAME_ID : 1018685
91
92
run : |
92
93
# Get the list of existing releases
93
- releases=$(curl -s -H "Authorization: Bearer $BUTLER_API_KEY" https://itch.io/api/1/my-games/rainlizard/unearth/ uploads)
94
+ releases=$(curl -s -H "Authorization: Bearer $BUTLER_API_KEY" " https://itch.io/api/1/$BUTLER_API_KEY/ my-games/$GAME_ID/ uploads" )
94
95
95
96
echo "API response:"
96
97
echo "$releases"
97
98
98
99
# Extract the upload IDs of the releases
99
- upload_ids=$(echo "$releases" | jq -r '.uploads [].id')
100
+ upload_ids=$(echo "$releases" | jq -r '.[].id')
100
101
101
102
# Delete each release
102
103
for id in $upload_ids; do
103
- curl -s -X DELETE -H "Authorization : Bearer $BUTLER_API_KEY" https://itch.io/api/1/uploads/$id
104
+ curl -s -X DELETE -H "Authorization : Bearer $BUTLER_API_KEY" " https://itch.io/api/1/$BUTLER_API_KEY/ uploads/$id"
104
105
done
105
106
106
107
- name : Upload to itch.io
You can’t perform that action at this time.
0 commit comments