From cd971e5c0ddd228572ebf784331640f7c3f1b2fc Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:25:13 +0200 Subject: [PATCH] Publish Mastodon post on new release (#571) Adds an action to publish a post to Mastodon on each new release --- .github/workflows/post-to-mastodon.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/post-to-mastodon.yml diff --git a/.github/workflows/post-to-mastodon.yml b/.github/workflows/post-to-mastodon.yml new file mode 100644 index 0000000..5d9ffda --- /dev/null +++ b/.github/workflows/post-to-mastodon.yml @@ -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 }}