Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 59e386d

Browse files
Create release-toot.yml
1 parent 8e93716 commit 59e386d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎.github/workflows/release-toot.yml

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /