File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 echo "zip=$(ls -1 dist/PatchManager-*.zip | head -n 1)" >> $GITHUB_ENV
3737 echo "upload_url=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].upload_url' | tr -d \")" >> $GITHUB_ENV
3838 echo "changelog=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].body' | tr -d \" | jq -Rr @uri)" >> $GITHUB_ENV
39+ echo "${{ env.changelog }}" > ./changelog.md
3940
4041 - name : Check if version exists
4142 id : check-version
8687
8788 - name : Update mod on spacedock
8889 run : |
89- result=$(curl -b ./cookies -F "version=${{ env.version }}" -F "changelog=${{ env. changelog }} " -F "game-version=${{ env.LATEST_GAME_VERSION }}" -F "notify-followers=yes" -F "zipball=@${{ env.zip }}" "https://spacedock.info/api/mod/${{ env.MOD_ID }}/update")
90+ result=$(curl -b ./cookies -F "version=${{ env.version }}" -F "changelog=@./ changelog.md " -F "game-version=${{ env.LATEST_GAME_VERSION }}" -F "notify-followers=yes" -F "zipball=@${{ env.zip }}" "https://spacedock.info/api/mod/${{ env.MOD_ID }}/update")
9091 errored=$(echo $result | jq .error)
9192 if [ "$errored" == "true" ]; then
9293 echo "Upload to space dock errored: $(echo $result | jq .reason)"
You can’t perform that action at this time.
0 commit comments