Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-mc authored Dec 6, 2024
1 parent 4021074 commit 31e731e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ on:
permissions:
contents: write


jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,6 +53,7 @@ jobs:
run: ./gradlew build --stacktrace

- name: Send JAR to Discord Webhook
if: github.event_name == 'push' # Only send to Discord on push events
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GITHUB_SHA: ${{ github.sha }}
Expand All @@ -74,4 +74,4 @@ jobs:
curl -X POST -H "Content-Type: multipart/form-data" \
-F "file=@$JAR_PATH" \
-F "payload_json={\"content\":\"$GIT_COMMIT_AUTHOR pushed $GIT_COMMIT_COMMENT_COUNT changes to the repository $GITHUB_REPOSITORY on branch $GITHUB_REF. Commit URL: $GIT_COMMIT_URL\"}" \
$DISCORD_WEBHOOK_URL
$DISCORD_WEBHOOK_URL

0 comments on commit 31e731e

Please sign in to comment.