Skip to content

Commit dcb3bdd

Browse files
committed
Mastodon post action
1 parent 296eeef commit dcb3bdd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Mastodon Post
2+
3+
# Credit https://github.com/phpstan/phpstan-strict-rules/blob/1.4.x/.github/workflows/release-toot.yml
4+
5+
# More triggers
6+
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
toot:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: cbrgm/mastodon-github-action@v1
16+
if: ${{ !github.event.repository.private }}
17+
with:
18+
# GitHub event payload
19+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
20+
message: "New release: ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} ${{ github.event.release.html_url }} #drupal #dogit"
21+
env:
22+
MASTODON_URL: https://drupal.community
23+
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)