mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
[ci skip] Discord support
This commit is contained in:
8
.github/workflows/leaves.yml
vendored
8
.github/workflows/leaves.yml
vendored
@@ -11,11 +11,13 @@ on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
types: closed
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.merged || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
steps:
|
||||
- name: Get repository
|
||||
uses: actions/checkout@v3
|
||||
@@ -53,3 +55,9 @@ jobs:
|
||||
uses: hugo19941994/delete-draft-releases@v1.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Github Releases To Discord
|
||||
uses: SethCohen/github-releases-to-discord@v1.13.0
|
||||
with:
|
||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
username: "Leaves CI"
|
||||
avatar_url: "https://avatars.githubusercontent.com/u/93428079"
|
||||
|
||||
Reference in New Issue
Block a user