Skip to content

Commit

Permalink
CI: improve post workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Apr 5, 2024
1 parent e6e8939 commit 3632ddf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@ jobs:
URL="${{ github.event_name == 'release' && github.event.release.html_url || format('{0}/{1}', github.server_url, github.repository) }}"
echo "value=$URL" >> "$GITHUB_OUTPUT"
- name: Prepare Words
id: words
env:
XRELEASE: ${{ github.event_name == 'release' && (github.event.release.prerelease && 'pre-release' || 'release') || '' }}
run: echo "release=$XRELEASE" >> "$GITHUB_OUTPUT"

- name: Toot
id: mastodon
uses: cbrgm/[email protected]
with:
message: |
🦀 Rusty Playdate Updated!
${{ inputs.message || (github.event_name == 'release' && format('New release published: {0}', github.event.release.name) || '') }}
${{ inputs.message || (github.event_name == 'release' && format('New {0} published: {1}', steps.words.outputs.release, github.event.release.name) || '') }}
${{ steps.url.outputs.value }}
Expand Down

0 comments on commit 3632ddf

Please sign in to comment.