Skip to content

Commit

Permalink
Create release-toot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes authored Dec 19, 2022
1 parent cd9c693 commit 64f4c56
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release-toot.yml
Original file line number Diff line number Diff line change
@@ -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 64f4c56

Please sign in to comment.