Skip to content

Commit 5c06a69

Browse files
committed
added a github action to automatically toot new release upon publication on GitHub
1 parent a7c4d72 commit 5c06a69

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/mastodon.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://github.com/marketplace/actions/fediverse-action
2+
3+
name: toot-release
4+
5+
# More triggers
6+
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release
7+
#on: [push]
8+
on:
9+
release:
10+
types: [published]
11+
12+
jobs:
13+
toot:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: rzr/fediverse-action@master
17+
with:
18+
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
19+
host: "ecoevo.social" # custom host if not "mastodon.social" (default)
20+
# GitHub event payload
21+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
22+
# repo name can be queried with ${{ github.event.repository.name }}
23+
message: "New Poseidon schema release ${{ github.event.release.tag_name }}! Please see the changelog here: https://poseidon-framework.github.io/#/changelog. New software versions are available to work with this new release: https://poseidon-framework.github.io/#/version_table #aDNA #OpenData"

0 commit comments

Comments
 (0)