Skip to content

Commit

Permalink
fix: Sample code in README.md (#546)
Browse files Browse the repository at this point in the history
* fix: `nodetail` code sample

* Upload new sample image

* Revert "Upload new sample image"

This reverts commit ffadf68.

* Match sample code with existing image

* Use correct webhook field

* Fix syntax in sample code

* Use dynamic code in Markdown sample

* Use single variable for release link

Co-authored-by: Takakazu Fu <[email protected]>

* Use single variable for release link

Co-authored-by: Takakazu Fu <[email protected]>

---------

Co-authored-by: Takakazu Fu <[email protected]>
  • Loading branch information
KobeW50 and sarisia authored Aug 11, 2024
1 parent 42796fc commit 79f4a25
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ Post GitHub Actions status to Discord as an beautiful embed
```yaml
- uses: sarisia/actions-status-discord@v1
if: always()
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nodetail: true
title: "We did it!"
title: "New version of `software` is ready!"
description: |
Version `${{ github.event.release.tag_name }}`
Click [here](${{ github.event.release.html_url }}) to download!
color: 0xff91a4
```
Expand Down Expand Up @@ -128,10 +130,11 @@ Some fields support markdown syntax.
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nodetail: true
title: New version of `software` is ready!
title: "New version of `software` is ready!"
description: |
Version `1.2.3-alpha`
Click [here](https://github.com/sarisia/actions-status-discord) to download!
Version `${{ github.event.release.tag_name }}`
Click [here](${{ github.event.release.html_url }}) to download!
color: 0xff91a4
```
![image](https://user-images.githubusercontent.com/33576079/212482315-52429bbd-b7b9-456a-8ee8-ee26aa2a0fb1.png)
Expand Down

0 comments on commit 79f4a25

Please sign in to comment.