Skip to content

Commit 9781d7b

Browse files
committed
test
1 parent 561d0ee commit 9781d7b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/webhook.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ jobs:
1818
- name: Read VERSION file
1919
id: contents
2020
run: echo "contents=$(cat README.md)" >> $$GITHUB_STATE
21+
- name: Gets latest created release info
22+
id: release_info
23+
uses: jossef/[email protected]
24+
env:
25+
GITHUB_TOKEN: ${{ github.token }}
2126
- id: set-matrix
2227
run: |
23-
echo "{\"embeds\":[{\"title\":\"Hello\",\"url\":\"https://www.github.com\",\"description\":\"World\"}]}" >> generated.json
28+
echo "{\"embeds\":[{\"title\":\"New Release: ${{steps.release_info.outputs.name}}\",\"url\":\"${{steps.release_info.outputs.html_url}}\",\"description\":\"World\"}]}" >> generated.json
2429
cat generated.json
2530
- name: Discord Webhook Action
2631
uses: tsickert/[email protected]

0 commit comments

Comments
 (0)