File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments