Skip to content

Commit 74ee57b

Browse files
authored
Merge pull request #215 from patchlevel/DanielBadura-patch-1
Update release notification
2 parents 4997521 + 9c68997 commit 74ee57b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/notify-on-release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,33 @@ on:
44
release:
55
types: [published]
66

7+
env:
8+
NOTIFY_MESSAGE: |
9+
We released ${{ github.event.release.tag_name }} of ${{ github.event.repository.name }}! See here for the changelog: ${{ github.event.release.html_url }}
10+
#PHP #DDD #EventSourcing #Symfony
11+
712
jobs:
813
twitter:
914
runs-on: ubuntu-latest
1015
steps:
11-
- uses: eomm/why-don-t-you-tweet@v1
16+
- uses: eomm/why-don-t-you-tweet@v2
1217
if: ${{ !github.event.repository.private }}
1318
with:
1419
# GitHub event payload
1520
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
16-
tweet-message: "New ${{ github.event.repository.name }} release ${{ github.event.release.tag_name }}! ${{ github.event.release.html_url }}"
21+
tweet-message: ${{ env.NOTIFY_MESSAGE }}
1722
env:
1823
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
1924
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
2025
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
2126
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
2227

23-
mastadon:
28+
mastodon:
2429
runs-on: ubuntu-latest
2530
steps:
2631
- uses: cbrgm/mastodon-github-action@v2
2732
if: ${{ !github.event.repository.private }}
2833
with:
29-
message: "New ${{ github.event.repository.name }} release ${{ github.event.release.tag_name }}! ${{ github.event.release.html_url }}"
30-
env:
31-
MASTODON_URL: ${{ secrets.MASTODON_URL }}
32-
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
34+
message: ${{ env.NOTIFY_MESSAGE }}
35+
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
36+
url: ${{ secrets.MASTODON_URL }}

0 commit comments

Comments
 (0)