diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml new file mode 100644 index 0000000000..b372bc670d --- /dev/null +++ b/.github/workflows/announce-release.yml @@ -0,0 +1,42 @@ +name: Announce Release on Mastodon + +on: + push: + branches: + - main + paths: + - 'CHANGELOG.md' + +permissions: + contents: read + pull-requests: read +jobs: + post_to_mastodon: + if: "${{ contains(github.event.head_commit.message, 'chore(main): release') }}" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Post to Mastodon + uses: snakemake/mastodon-release-post-action@v1 + with: + access-token: ${{ secrets.MASTODONBOT }} + pr-title: ${{ github.event.head_commit.message }} + image: "logo_dark.png" + image-description: "Snakemake HPC logo for Mastodon" + message: | + Yam, yam - I am your friendly #Snakemake release announcement bot. + + There is a new release of Snakemake-Wrappers. Its version now is {{ version }}! + + + If you want to discuss the release, you will find the maintainer here on Mastodon! + @johanneskoester@fosstodon.org + + 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 }} + diff --git a/pr-logo/logo_dark.png b/pr-logo/logo_dark.png new file mode 100644 index 0000000000..33132725e8 Binary files /dev/null and b/pr-logo/logo_dark.png differ diff --git a/pr-logo/logo_dark.xcf b/pr-logo/logo_dark.xcf new file mode 100644 index 0000000000..8d1f5c084a Binary files /dev/null and b/pr-logo/logo_dark.xcf differ