From 5fb9d80cfd3cc9323a4637c85ea44181002f9540 Mon Sep 17 00:00:00 2001 From: dicedtomato <35403473+dicedtomatoreal@users.noreply.github.com> Date: Wed, 27 May 2020 21:26:08 -0700 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a31159b..2d0a6795 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,10 +6,9 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: send custom message with args - uses: appleboy/discord-action@master + - name: Discord notification + env: + DISCORD_WEBHOOK: https://canary.discordapp.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_token }} + uses: Ilshidur/action-discord@master with: - webhook_id: ${{ secrets.WEBHOOK_ID }} - webhook_token: ${{ secrets.WEBHOOK_TOKEN }} - args: The ${{ github.event_name }} event triggered first step. + args: 'The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed.'