Skip to content

Commit

Permalink
Publish Mastodon post on new release (#571)
Browse files Browse the repository at this point in the history
Adds an action to publish a post to Mastodon on each new release
  • Loading branch information
GeckoEidechse authored Oct 19, 2023
1 parent 587363f commit cd971e5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/post-to-mastodon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Post-to-Mastodon
on:
release:
types: [published]

jobs:
toot:
runs-on: ubuntu-22.04
steps:
- name: Send toot to Mastodon
id: mastodon
uses: cbrgm/mastodon-github-action@v1
with:
message: "We just released Northstar ${{ github.event.release.tag_name }}\n\n${{ github.event.release.html_url }}"
env:
MASTODON_URL: ${{ secrets.MASTODON_URL }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}

0 comments on commit cd971e5

Please sign in to comment.