Skip to content

Commit 1e95fd1

Browse files
committed
feat: added announcement bot workflow
1 parent f754fc8 commit 1e95fd1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Announce Release on Mastodon
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
path:
8+
- 'CHANGELOG.md'
9+
10+
permissions:
11+
pull-requests: read
12+
13+
jobs:
14+
post_to_mastodon:
15+
if: "${{ contains(github.event.head_commit.message, 'chore(main): release') }}"
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Post to Mastodon
19+
uses: snakemake/[email protected]
20+
with:
21+
access-token: ${{ secrets.MASTODONBOT }}
22+
pr-title: ${{ github.event.head_commit.message }}
23+
message: |
24+
Beep, Beep - I am your friendly #Snakemake release announcement bot.
25+
26+
There is a new release of the #HPC Teaching Material for Snakemake. Its version now is {{ version }}!
27+
28+
If you want to discuss the release, you will find the maintainers here on Mastodon!
29+
@rupdecat and @[email protected]
30+
31+
If you discover any issues, please report them on {{ issue_url }}.
32+
33+
See {{ changelog }} for details. Here is the header of the changelog:
34+
35+
${{ steps.extract-release-notes.outputs.release_notes }}
36+

0 commit comments

Comments
 (0)