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.'