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

46 lines
970 B
YAML
Raw Normal View History

name: Discord Webhook
on:
push:
paths:
- 'src/**'
2020-10-10 17:40:45 +00:00
- '!src/main/resources/languages/**'
- 'pom.xml'
permissions:
contents: read
jobs:
report:
2020-08-06 07:52:59 +00:00
name: Discord Webhook
runs-on: ubuntu-latest
## Only run this on the main repo
2020-09-06 15:19:17 +00:00
if: github.repository == 'Slimefun/Slimefun4'
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.2
- name: Set up Java JDK 17
uses: actions/setup-java@v3.11.0
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run Discord Webhook
uses: baked-libs/discord-webhook@1.5.1
with:
id: ${{ secrets.DISCORD_WEBHOOK_ID }}
token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}