-
Notifications
You must be signed in to change notification settings - Fork 30
ci: mastodon action #231
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
Merged
Merged
ci: mastodon action #231
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b4235fb
feat: writing error to stderr
cmeesters 47f1e51
fix: solve merge conflict
cmeesters 6348846
Merge branch 'main' of github.com:snakemake/snakemake-executor-plugin…
cmeesters 39dc626
Merge branch 'main' of github.com:snakemake/snakemake-executor-plugin…
cmeesters 892ed07
ci: cleanup and adaption to new github action
cmeesters 97634ad
ci: cleanup and adaption to new github action
cmeesters c9e2f5c
fix: deleted outdated shell script
cmeesters 6b219d4
fix: added empty line to end of file
cmeesters bc95433
Update .github/workflows/announce-release.yml
cmeesters d5d9b61
Update .github/workflows/announce-release.yml
cmeesters File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Announce Release on Mastodon | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
path: | ||
- 'CHANGELOG.md' | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
post_to_mastodon: | ||
if: contains(github.event.pull_request.title, 'chore(main): release') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Post to Mastodon | ||
uses: snakemake/mastodon-release-post-action@v1 | ||
with: | ||
message: | | ||
Beep, Beep - I am your friendly #Snakemake release announcement bot. | ||
|
||
There is a new release of the Snakemake executor for #SLURM on #HPC systems. Its version is {{ version }}! | ||
|
||
See {{ changelog }} for details. | ||
|
||
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 maintainers here on Mastodon! | ||
@rupdecat and @johanneskoester | ||
|
||
If you find any issues, please report them on {{ issue_url }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Verification agent
❓ Verification inconclusive
YAML Parsing Issue in Condition & Event Context Mismatch
The
if:
condition on line 15 is causing a YAML parsing error because the expression contains a colon (in'chore(main): release'
) which must be quoted. Moreover, the workflow is triggered by apush
event where the propertygithub.event.pull_request.title
is not available. If the intent is to restrict announcements to release merges, consider checking the commit message (e.g., usinggithub.event.head_commit.message
) instead.Example fix:
Alternatively, if you truly need to evaluate the pull request title, you might need to change the triggering event (for example, to
pull_request
) instead ofpush
. Please verify the intended workflow context.Critical YAML & Event Context Issue: Update
if:
ConditionThe current condition causes a YAML parsing error due to the unquoted expression containing a colon, and it incorrectly references
github.event.pull_request.title
even though the workflow is triggered by a push event (where pull request data isn’t available). To fix this:github.event.head_commit.message
instead.For example, update line 15 as follows:
If using the pull request title is essential, then consider switching the workflow trigger to the
pull_request
event instead.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
15-15: could not parse as YAML: yaml: line 15: mapping values are not allowed in this context
(syntax-check)
🪛 YAMLlint (1.35.1)
[error] 15-15: syntax error: mapping values are not allowed here
(syntax)