Compare commits

...

6 Commits

Author SHA1 Message Date
Kreyren cc5a9a02d8 test 2020-03-18 11:42:59 +00:00
Kreyren 5b72341fb8 test 2020-03-18 11:42:38 +00:00
Kreyren 6eb66716cd test 2020-03-18 11:37:27 +00:00
Kreyren 664f14ff64 test 2020-03-18 11:34:10 +00:00
Kreyren 1a46b87319 Cherrypick triggers 2020-03-18 11:25:40 +00:00
Kreyren 43bef4dfd7
Create discord.yml 2020-03-18 11:16:53 +01:00

32
.github/workflows/discord.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: discord message
# Relevant to events - https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
issues:
types: [opened, transferred, pinned, unpinned]
fork:
release:
types: [published, deleted, edited]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: send custom message with args
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
# Relevant to github contexts https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
args: |
New ${{ github.event_name }} has been created by ${{ github.actor }} on ${{ github.event_name }}.
event_path: ${{ github.event_path }}
github.ref: ${{ github.ref }}
github.head_ref: ${{ github.head_ref }}
github.base_ref: ${{ github.base_ref }}
github.repository: ${{ github.repository }}