mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
chore: correct string output for script
This commit is contained in:
parent
b9dd5c18a8
commit
fd438025af
11
.github/workflows/mastodon.yml
vendored
11
.github/workflows/mastodon.yml
vendored
|
@ -11,6 +11,7 @@ jobs:
|
||||||
id: notes
|
id: notes
|
||||||
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
|
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
|
||||||
with:
|
with:
|
||||||
|
result-encoding: string
|
||||||
script: |
|
script: |
|
||||||
notes = context.payload.release.body
|
notes = context.payload.release.body
|
||||||
|
|
||||||
|
@ -19,12 +20,18 @@ jobs:
|
||||||
notes = notes.replaceAll('**', '')
|
notes = notes.replaceAll('**', '')
|
||||||
notes = notes.replace(/ \(\[[0-9a-z]+\]\(.*\)/g, '')
|
notes = notes.replace(/ \(\[[0-9a-z]+\]\(.*\)/g, '')
|
||||||
notes = notes.trim()
|
notes = notes.trim()
|
||||||
notes += `\n${context.payload.release.html_url}`
|
|
||||||
return notes
|
return notes
|
||||||
- name: Toot 🐘
|
- name: Toot 🐘
|
||||||
uses: cbrgm/mastodon-github-action@6cffb7d449201bf36a60589de7a76e18ee226043
|
uses: cbrgm/mastodon-github-action@6cffb7d449201bf36a60589de7a76e18ee226043
|
||||||
with:
|
with:
|
||||||
message: ${{steps.notes.outputs.result}}
|
message: |
|
||||||
|
📦 ${{ github.event.release.name }}
|
||||||
|
|
||||||
|
${{steps.notes.outputs.result}}
|
||||||
|
|
||||||
|
${{ github.event.release.html_url }}
|
||||||
|
|
||||||
|
#ohmyposh #oss #cli #opensource
|
||||||
visibility: "public"
|
visibility: "public"
|
||||||
env:
|
env:
|
||||||
MASTODON_URL: "https://social.ohmyposh.dev/"
|
MASTODON_URL: "https://social.ohmyposh.dev/"
|
||||||
|
|
Loading…
Reference in a new issue