testing new ci#149
Conversation
Adds a single shared `pr-comment.yml` workflow as the only one that runs with a write token. It is triggered via `workflow_run` after a producer workflow completes, downloads a standard `pr-comment` artifact, and posts the comment. The producer workflows — `linting`, `template-version-comment`, and `branch` — now run on `pull_request` with read-only tokens and just upload a `pr-comment` artifact (`pr_number.txt`, `header.txt`, optional `comment.md`). They no longer post comments directly. Removes the now-redundant `linting_comment.yml`. Ported from nf-core/rnaseq#1872. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rkflows Consolidate and harden PR-comment GitHub Actions workflows
|
@nf-core-bot fix linting |
1 similar comment
|
@nf-core-bot fix linting |
Adds a single shared `pr-comment.yml` workflow as the only one that runs with a write token. It is triggered via `workflow_run` after a producer workflow completes, downloads a standard `pr-comment` artifact, and posts the comment. The producer workflows — `linting`, `template-version-comment`, and `branch` — now run on `pull_request` with read-only tokens and just upload a `pr-comment` artifact (`pr_number.txt`, `header.txt`, optional `comment.md`). They no longer post comments directly. Removes the now-redundant `linting_comment.yml`. Ported from nf-core/rnaseq#1872. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> # Conflicts: # .github/workflows/branch.yml # .github/workflows/linting_comment.yml # .github/workflows/template-version-comment.yml
# Conflicts: # .editorconfig # .github/workflows/ci.yml # .github/workflows/linting_comment.yml # .github/workflows/template-version-comment.yml # .github/workflows/template_version_comment.yml # .nf-core.yml # README.md # nextflow.config # ro-crate-metadata.json # subworkflows/local/utils_nfcore_testpipeline_pipeline/main.nf
Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com> Co-authored-by: mashehu <mashehu3@gmail.com>
`dawidd6/action-download-artifact` with a single `name:` extracts the artifact's contents into the workspace root, so `comment.md`, `header.txt` and `pr_number.txt` landed at `./` — not under `pr-comment/`. The metadata step's `[ -f pr-comment/comment.md ] || exit 0` therefore always bailed and no comment was ever posted. Add `path: pr-comment` to the download step so the files land where the rest of the workflow expects them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Log the downloaded artifact contents and distinguish "no artifact" from "artifact present but no comment body" so a future path/artifact mismatch is visible in the run output rather than silently posting nothing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fix PR-comment poster never posting (artifact extracted to wrong path)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 4.0.1. For more documentation on how to update your pipeline, please see the Synchronisation documentation. |
|
|
@nf-core-bot fix linting |
|
Heads up @mashehu: I pushed two trivial commits here ( I did verify the consolidated PR-comment workflow works by re-running the linting producer. It fired the shared poster on |
No description provided.