1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00
Slimefun4/.github/workflows/discord-webhook.yml
2021-05-17 14:32:39 +00:00

34 lines
734 B
YAML

name: Discord Webhook
on:
push:
paths:
- 'src/**'
- '!src/main/resources/languages/**'
- 'pom.xml'
jobs:
report:
name: Discord Webhook
runs-on: ubuntu-latest
## Only run this on the main repo
if: github.repository == 'Slimefun/Slimefun4'
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
- name: Set up Java JDK 11
uses: actions/setup-java@v2.1.0
with:
distribution: 'adopt'
java-version: '11'
java-package: jdk
architecture: x64
- name: Run Discord Webhook
uses: Slimefun/discord-webhook@master
with:
id: ${{ secrets.DISCORD_WEBHOOK_ID }}
token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}