Skip to content

Commit cd971e5

Browse files
Publish Mastodon post on new release (#571)
Adds an action to publish a post to Mastodon on each new release
1 parent 587363f commit cd971e5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Post-to-Mastodon
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
toot:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- name: Send toot to Mastodon
11+
id: mastodon
12+
uses: cbrgm/mastodon-github-action@v1
13+
with:
14+
message: "We just released Northstar ${{ github.event.release.tag_name }}\n\n${{ github.event.release.html_url }}"
15+
env:
16+
MASTODON_URL: ${{ secrets.MASTODON_URL }}
17+
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)