Skip to content

Commit c166eb3

Browse files
ci: mastodon action (#231)
this PR attempts to utilize the new mastodon-github-action release. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - A new GitHub Actions workflow automates release announcements on Mastodon, including version details and changelog links. - **Chores** - Removed the legacy script for posting announcements to Mastodon, enhancing the reliability of the announcement process. - Deleted the previous workflow for posting to Mastodon on pull request merges. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: David Laehnemann <david.laehnemann@hhu.de>
1 parent 35d7dab commit c166eb3

File tree

3 files changed

+33
-109
lines changed

3 files changed

+33
-109
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.pull_request.title, 'chore(main): release')
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Post to Mastodon
19+
uses: snakemake/mastodon-release-post-action@v1
20+
with:
21+
message: |
22+
Beep, Beep - I am your friendly #Snakemake release announcement bot.
23+
24+
There is a new release of the Snakemake executor for #SLURM on #HPC systems. Its version is {{ version }}!
25+
26+
See {{ changelog }} for details.
27+
28+
Give us some time and you will automatically find the plugin on #Bioconda and #Pypi.
29+
30+
If you want to discuss the release you will find the maintainers here on Mastodon!
31+
@rupdecat and @johanneskoester
32+
33+
If you find any issues, please report them on {{ issue_url }}

.github/workflows/post_to_mastodon.sh

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/post_to_mastodon.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)