From 665d4544307598c4a8af1b018518d6814826789b Mon Sep 17 00:00:00 2001 From: xobotyi Date: Mon, 24 May 2021 04:06:39 +0300 Subject: [PATCH] chore: discord notifier env vars --- .github/workflows/ci-cd.yml | 2 +- .github/workflows/discord-release-notify.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index f9a91986..14a4b82d 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -113,7 +113,7 @@ jobs: steps: - uses: fastify/github-action-merge-dependabot@v2.0.0 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{ secrets.GITHUB_TOKEN }} semantic-release: name: "Release" diff --git a/.github/workflows/discord-release-notify.yml b/.github/workflows/discord-release-notify.yml index 39251871..de02efbf 100644 --- a/.github/workflows/discord-release-notify.yml +++ b/.github/workflows/discord-release-notify.yml @@ -11,15 +11,15 @@ jobs: name: "Notify" runs-on: ubuntu-latest steps: - - id: rhw-release - uses: pozetroninc/github-action-get-latest-release@master - with: - owner: react-hookz - repo: web - excludes: prerelease, draft - name: Discord notification env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} uses: Ilshidur/action-discord@master with: - args: "🆕 New release published\n\n{{ EVENT_PAYLOAD.release.name }}\n{{ EVENT_PAYLOAD.release.body }}\n\n{{ EVENT_PAYLOAD.release.url }}" + args: | + 🎊 New release published 🎊 + + ${{ github.event.release.name }} + ${{ github.event.release.body }} + + ${{ github.event.release.url }}"