Skip to content

Commit 03cb551

Browse files
committed
fix: switched announcement workflows2
1 parent 292f0c9 commit 03cb551

File tree

2 files changed

+38
-17
lines changed

2 files changed

+38
-17
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 Snakemake executor for #SLURM on #HPC systems. Its version now is {{ version }}!
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 @[email protected]
32+
33+
If you discover any issues, please report them on {{ issue_url }}.
34+
35+
See {{ changelog }} for details. Here is the header of the changelog:
36+
37+
${{ steps.extract-release-notes.outputs.release_notes }}
38+

.github/workflows/post_to_mastodon.yml

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

0 commit comments

Comments
 (0)