Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TejasLamba2006 authored Jul 18, 2024
1 parent 991d04f commit 9a582fc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ jobs:

- name: Send JAR to Discord Webhook
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
JAR_PATH=$(find build/libs -name "*.jar" | head -n 1)
if [ -z "$JAR_PATH" ]; then
echo "No JAR file found"
exit 1
fi
FILENAME=$(basename $JAR_PATH)
curl -X POST -H "Content-Type: multipart/form-data" \
-F "file=@$JAR_PATH" \
-F "payload_json={\"content\":\"New build available: $FILENAME\ (These builds are just for testing please don't use them for playing)"}" \
$DISCORD_WEBHOOK_URL
JAR_PATH=$(find build/libs -name "*.jar" | head -n 1)
if [ -z "$JAR_PATH" ]; then
echo "No JAR file found"
exit 1
fi
FILENAME=$(basename $JAR_PATH)
curl -X POST -H "Content-Type: multipart/form-data" \
-F "file=@$JAR_PATH" \
-F "payload_json={\"content\":\"New build available: $FILENAME (These builds are just for testing please don't use them for playing)\"}" \
$DISCORD_WEBHOOK_URL

0 comments on commit 9a582fc

Please sign in to comment.