Skip to content

Commit b27168c

Browse files
authored
feat: adding image for mastodon posts (#349)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Release announcements on social channels now include a branded image with an accessible description, improving clarity and visual presence. * **Chores** * Improved the release announcement automation to ensure reliable posting. * Refined the trigger configuration to accurately run announcements when the changelog is updated. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent d6759d0 commit b27168c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/announce-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
path:
7+
paths:
88
- 'CHANGELOG.md'
99

1010
permissions:
@@ -15,11 +15,16 @@ jobs:
1515
if: "${{ contains(github.event.head_commit.message, 'chore(main): release') }}"
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
1821
- name: Post to Mastodon
1922
uses: snakemake/mastodon-release-post-action@main # == latest
2023
with:
2124
access-token: ${{ secrets.MASTODONBOT }}
2225
pr-title: ${{ github.event.head_commit.message }}
26+
image: "${{ github.workspace }}/pr_logo/long_logo_hpc.png"
27+
image-description: "Snakemake HPC logo for Mastodon"
2328
message: |
2429
Beep, Beep - I am your friendly #Snakemake release announcement bot.
2530

pr_logo/long_logo_hpc.png

9.26 KB
Loading

0 commit comments

Comments
 (0)