-
Notifications
You must be signed in to change notification settings - Fork 3
feat: mastodon announcement #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,51 @@ | ||||||
| name: Announce Release on Mastodon | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| branches: | ||||||
| - main | ||||||
| paths: | ||||||
| - '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: Checkout repository | ||||||
| uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Verify logo file exists | ||||||
| run: | | ||||||
| ls -la ${{ github.workspace }}/pr_logo/ | ||||||
| if [ ! -f "${{ github.workspace }}/pr_logo/long_logo_env_modules.png" ]; then | ||||||
| echo "ERROR: Logo file not found!" | ||||||
| exit 1 | ||||||
| fi | ||||||
| echo "Logo file found at: ${{ github.workspace }}/pr_logo/long_logo_env_modules.png" | ||||||
|
|
||||||
| - name: Post to Mastodon | ||||||
| uses: snakemake/mastodon-release-post-action@main # == latest | ||||||
| with: | ||||||
| access-token: ${{ secrets.MASTODONBOT }} | ||||||
| pr-title: ${{ github.event.head_commit.message }} | ||||||
| image: "long_logo_conda.png" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Image filename mismatch. Line 24 verifies 🐛 Proposed fix- image: "long_logo_conda.png"
+ image: "pr_logo/long_logo_env_modules.png"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| image-description: "Snakemake HPC logo for Mastodon" | ||||||
| message: | | ||||||
| Beep, Beep - I am your friendly #Snakemake release announcement bot. | ||||||
|
|
||||||
| There is a new release of the Snakemake software deployment plugin for #EnvironmentModules for #HPC. Its version now is {{ version }}! | ||||||
|
|
||||||
| Give us some time, and you will automatically find the plugin on #Bioconda and #Pypi. | ||||||
|
|
||||||
| 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 }} | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing step This references You need to add a step that extracts release notes before the "Post to Mastodon" step, for example using an action like 🤖 Prompt for AI Agents |
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: snakemake/snakemake-software-deployment-plugin-envmodules
Length of output: 424
🌐 Web query:
snakemake mastodon-release-post-action releases versions github💡 Result:
In the snakemake/snakemake repository there is a GitHub Actions workflow named “Announce Release on Mastodon”, which is intended to post to Mastodon when a GitHub Release is made/published. [1]
To figure out which
mastodon-release-post-actionrepo and which versions/tags it uses:.github/workflows/corresponding to “Announce Release on Mastodon”).uses: <owner>/mastodon-release-post-action@....@is the version selector (typically a tag likev1or a full tag likev1.2.3).@v1so you get non-breaking updates).Separately, Snakemake itself is actively released (e.g., the repo shows v9.16.3 as a “Latest” release on Feb 5, 2026), which is the kind of event that workflow is meant to announce. [2]
Sources: [1] [2]
🏁 Script executed:
Repository: snakemake/snakemake-software-deployment-plugin-envmodules
Length of output: 569
🌐 Web query:
site:github.com snakemake/mastodon-release-post-action releases tags💡 Result:
v1.7.6(Nov 30, 2025). [1]v1.7.6, plus moving major/minor tagsv1andv1.7(both dated Nov 30, 2025 and pointing at the same commit asv1.7.6). [2]Pin action to a specific version.
Using
@mainfor actions is a security and reliability risk—the action code could change unexpectedly or be compromised. Thesnakemake/mastodon-release-post-actionhas multiple stable releases available. Pin to a specific version tag instead (e.g.,@v1.7.6for the latest release, or@v1.7for receiving patch updates within the minor version).Example fix
📝 Committable suggestion
🤖 Prompt for AI Agents