Merge pull request #12 from snakemake/release-please--branches--main #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Announce Release on Mastodon | |
on: | |
push: | |
branches: | |
- main | |
path: | |
- 'CHANGELOG.md' | |
permissions: | |
pull-requests: read | |
jobs: | |
post_to_mastodon: | |
if: "${{ contains(github.event.head_commit.message, 'chore(main): release') }}" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post to Mastodon | |
uses: snakemake/[email protected] | |
with: | |
access-token: ${{ secrets.MASTODONBOT }} | |
pr-title: ${{ github.event.head_commit.message }} | |
message: | | |
Beep, Beep - I am your friendly #Snakemake release announcement bot. | |
There is a new release of the #HPC Teaching Material for Snakemake. Its version now is {{ version }}! | |
If you want to discuss the release, you will find the maintainers here on Mastodon! | |
@rupdecat and @[email protected] | |
If you discover any issues, please report them on {{ issue_url }}. | |
See {{ changelog }} for details. Here is the header of the changelog: | |
${{ steps.extract-release-notes.outputs.release_notes }} | |