Cleanly truncate Discord release notes
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "::set-output name=URL::$URL"
|
echo "::set-output name=URL::$URL"
|
||||||
- name: Get content
|
- name: Get content
|
||||||
uses: 2428392/gh-truncate-string-action@v1.2.0
|
uses: 2428392/gh-truncate-string-action@v1.3.0
|
||||||
id: get-content
|
id: get-content
|
||||||
with:
|
with:
|
||||||
stringToTruncate: |
|
stringToTruncate: |
|
||||||
@@ -24,6 +24,7 @@ jobs:
|
|||||||
|
|
||||||
${{ github.event.release.body }}
|
${{ github.event.release.body }}
|
||||||
maxLength: 2000
|
maxLength: 2000
|
||||||
|
truncationSymbol: "..."
|
||||||
- name: Discord Webhook Action
|
- name: Discord Webhook Action
|
||||||
uses: tsickert/discord-webhook@v5.3.0
|
uses: tsickert/discord-webhook@v5.3.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user