Skip to content

Commit b207279

Browse files
authored
feat: attempt to gain full release notes posted on mastodon (#298)
This PR should enable the post to mastodon action to publish the part of the Changelog describing the change related to the new version. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Improved the format of release announcements on Mastodon, including clearer version information, reordered details, and inline release notes. - Updated workflow steps for extracting and posting release notes. - Adjusted Mastodon posting action version for workflow stability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 435e028 commit b207279

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/announce-release.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,27 @@ jobs:
1515
if: "${{ contains(github.event.head_commit.message, 'chore(main): release') }}"
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Extract release notes
19+
id: extract-release-notes
20+
uses: ffurrer2/extract-release-notes@v2
1821
- name: Post to Mastodon
19-
uses: snakemake/mastodon-release-post-action@v1.3.0
22+
uses: snakemake/mastodon-release-post-action@v1.2.3
2023
with:
2124
access-token: ${{ secrets.MASTODONBOT }}
2225
pr-title: ${{ github.event.head_commit.message }}
2326
message: |
2427
Beep, Beep - I am your friendly #Snakemake release announcement bot.
2528
26-
There is a new release of the Snakemake executor for #SLURM on #HPC systems. Its version is {{ version }}!
29+
There is a new release of the Snakemake executor for #SLURM on #HPC systems. Its version now is {{ version }}!
2730
28-
See {{ changelog }} for details.
31+
Give us some time, and you will automatically find the plugin on #Bioconda and #Pypi.
2932
30-
Give us some time and you will automatically find the plugin on #Bioconda and #Pypi.
33+
If you want to discuss the release, you will find the maintainers here on Mastodon!
34+
@rupdecat and @johanneskoester@fosstodon.org
3135
32-
If you want to discuss the release you will find the maintainers here on Mastodon!
33-
@rupdecat and @johanneskoester
36+
If you discover any issues, please report them on {{ issue_url }}.
37+
38+
See {{ changelog }} for details. Here is the header of the changelog:
3439
35-
If you find any issues, please report them on {{ issue_url }}
40+
${{ steps.extract-release-notes.outputs.release_notes }}
41+

0 commit comments

Comments
 (0)