Publish Mastodon post on new release (#571)

Adds an action to publish a post to Mastodon on each new release
This commit is contained in:
GeckoEidechse 2023-10-19 17:25:13 +02:00 committed by GitHub
parent 587363f257
commit cd971e5c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

17
.github/workflows/post-to-mastodon.yml vendored Normal file
View File

@ -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 }}