From 9781d7b027fd47e3f2dc87ce63df1948bd50d563 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Fri, 31 Mar 2023 15:06:37 -0400 Subject: [PATCH] test --- .github/workflows/webhook.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/webhook.yaml b/.github/workflows/webhook.yaml index eb9274d..7d72aef 100644 --- a/.github/workflows/webhook.yaml +++ b/.github/workflows/webhook.yaml @@ -18,9 +18,14 @@ jobs: - name: Read VERSION file id: contents run: echo "contents=$(cat README.md)" >> $$GITHUB_STATE + - name: Gets latest created release info + id: release_info + uses: jossef/action-latest-release-info@v1.2.1 + env: + GITHUB_TOKEN: ${{ github.token }} - id: set-matrix run: | - echo "{\"embeds\":[{\"title\":\"Hello\",\"url\":\"https://www.github.com\",\"description\":\"World\"}]}" >> generated.json + echo "{\"embeds\":[{\"title\":\"New Release: ${{steps.release_info.outputs.name}}\",\"url\":\"${{steps.release_info.outputs.html_url}}\",\"description\":\"World\"}]}" >> generated.json cat generated.json - name: Discord Webhook Action uses: tsickert/discord-webhook@v5.3.0