File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,23 @@ jobs:
5252 rm Ahorn/triggers/mapSwapTrigger.jl
5353 ZIPNAME=$ZIPNAME-${GITHUB_SHA:0:8}.zip
5454 zip -qq -r $ZIPNAME everest.yaml bin/Release/net452 Ahorn Graphics Audio Dialog Loenn documentation.txt
55- url=$(curl -H 'Content-Type: multipart/form-data' -X POST -F "file=@$ZIPNAME" "$DISCORD_WEBHOOK" | grep -Po 'cdn.discordapp.com\/.*?\.zip' | tr -d '\n ')
55+ url=$(curl -H 'Content-Type: multipart/form-data' -X POST -F "file=@$ZIPNAME" "$DISCORD_WEBHOOK"| jq -r '.attachments[0].url ')
5656 msg=$(git log -n 1 "--format=%B" | head -n 1 | tr -d '\n')
5757 curl -H 'Content-Type: application/json' -X POST -d "$(jq -n \
5858 --arg zipname "$ZIPNAME" \
5959 --arg url "$url" \
6060 --arg msg "$msg" \
61- '{embeds: [{title: "Install \($zipname)", url: "https://0x0ade.ga /twoclick/?\($url)", description: $msg}]}' \
61+ '{embeds: [{title: "Install \($zipname)", url: "https://0x0a.de /twoclick/?\($url)", description: $msg}]}' \
6262 )" "$DISCORD_WEBHOOK"
63+ echo "$url" > zip.url
64+
65+ - name : TAS Check
66+ if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/gh-actions'
67+ env :
68+ GITHUB_SHA : ${{ github.sha }}
69+ DISCORD_WEBHOOK : ${{ secrets.DISCORD_WEBHOOK }}
70+ run : |
71+ COMMIT_REF="[\`CollabUtils2@${GITHUB_SHA:0:8}\`](<https://github.com/EverestAPI/CelesteCollabUtils2/commit/${GITHUB_SHA}>)"
72+ docker run --rm max480/everest:tas-check CollabUtils2 "`cat zip.url`" \
73+ && curl -H 'Content-Type: application/json' -d "{\"content\": \":white_check_mark: TAS Check for ${COMMIT_REF} successful.\"}" "$DISCORD_WEBHOOK" \
74+ || (curl -H 'Content-Type: application/json' -d "{\"content\": \":x: TAS Check for ${COMMIT_REF} failed!\"}" "$DISCORD_WEBHOOK" && exit 1)
You can’t perform that action at this time.
0 commit comments