Skip to content

Commit

Permalink
feat: add gh action that posts a message to discord when pushing to d…
Browse files Browse the repository at this point in the history
…evelop (#895) (#963)
  • Loading branch information
clintonlunn authored Aug 21, 2023
1 parent eae9af8 commit 8ebf39d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/discord-messages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: notify-discord

on:
push:
branches:
- develop

jobs:
notify:
runs-on: ubuntu-latest

steps:
- name: Actions for Discord
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9
with:
args: ${{ env.DISCORD_MESSAGE }}

- name: Error Alert
if: failure()
uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9
with:
args: '🚨 An error occurred while running the workflow. test'

1 comment on commit 8ebf39d

@vercel
Copy link

@vercel vercel bot commented on 8ebf39d Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.