Skip to content

Commit

Permalink
Create release-toot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Dec 19, 2022
1 parent 3178f15 commit 4a920ef
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release-toot.yml
@@ -0,0 +1,21 @@
name: Toot release

# More triggers
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release
on:
release:
types: [published]

jobs:
toot:
runs-on: ubuntu-latest
steps:
- uses: cbrgm/mastodon-github-action@v1
if: ${{ !github.event.repository.private }}
with:
# GitHub event payload
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
message: "New release: ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} ${{ github.event.release.html_url }} #phpstan"
env:
MASTODON_URL: phpc.social
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}

0 comments on commit 4a920ef

Please sign in to comment.