Skip to content

Commit 70ec786

Browse files
committed
fix mastodon sting length
1 parent 4da8c76 commit 70ec786

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-mastodon.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
- name: Trim Body
2121
shell: bash
2222
run: |
23-
echo "BODY=$(echo "${{ github.event.release.body }}" | cut -c1-350 )" >> $GITHUB_ENV
23+
body="${{ github.event.release.body }}"
24+
result="${body:0:350}"
25+
echo "BODY=$(echo "${result}")" >> $GITHUB_ENV
2426
- name: Send toot to Mastodon
2527
continue-on-error: true
2628
id: mastodon

0 commit comments

Comments
 (0)