Skip to content

Commit 3cb9b56

Browse files
feat: added announcement robot (#109)
added the mastodon announcement bot to snakedeploy. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added automated Mastodon release announcements triggered by release commits on main. * Publishes a standardized, multi-paragraph post including version, extracted release notes, links to changelog and release pages, and an attached image with description. * Uses a secure project token to publish posts and runs as part of the main-branch release workflow for consistent, timely announcements. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Johannes Köster <[email protected]>
1 parent 4f66405 commit 3cb9b56

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Announce Release on Mastodon
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
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: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Post to Mastodon
22+
uses: snakemake/mastodon-release-post-action@main # == latest
23+
with:
24+
access-token: ${{ secrets.MASTODONBOT }}
25+
pr-title: ${{ github.event.head_commit.message }}
26+
image: "snakedeploy_transparent.png"
27+
image-description: "Snakedeploy logo - altered for Mastodon"
28+
message: |
29+
Beep, Beep - I am your friendly #Snakemake release announcement bot.
30+
31+
There is a new release of the Snakedeploy tool to deploy Snakemake workflows from the snakemake catalog. Its version now is {{ version }}!
32+
33+
Give us some time, and you will automatically find Snakedeploy on #Bioconda and #Pypi.
34+
35+
If you want to discuss the release, you will find the maintainers here on Mastodon!
36+
37+
38+
If you discover any issues, please report them on {{ issue_url }}.
39+
40+
See {{ changelog }} for details. Here is the header of the changelog:
41+
42+
${{ steps.extract-release-notes.outputs.release_notes }}
43+

img/snakedeploy_transparent.png

4.94 KB
Loading

0 commit comments

Comments
 (0)