From b9d598bc82b46b438792838132a87020e1ce6507 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Tue, 30 Jan 2024 17:51:51 +0800 Subject: [PATCH] Create discord-notification.yml --- .github/workflows/discord-notification.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/discord-notification.yml diff --git a/.github/workflows/discord-notification.yml b/.github/workflows/discord-notification.yml new file mode 100644 index 0000000..5356a5a --- /dev/null +++ b/.github/workflows/discord-notification.yml @@ -0,0 +1,24 @@ +name: Notification on push + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Discord notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + DISCORD_USERNAME: kubbot + DISCORD_AVATAR: https://avatars.githubusercontent.com/u/81367559?v=4 + uses: Ilshidur/action-discord@master + with: + args: "There is a new push. Click to view it 👇" + - name: Discord notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master