nf-core linting comment #2519
This file contains 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
name: nf-core linting comment | |
# This workflow is triggered after the linting action is complete | |
# It posts an automated comment to the PR, even if the PR is coming from a fork | |
on: | |
workflow_run: | |
workflows: ["nf-core linting"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download lint results | |
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6 | |
with: | |
workflow: linting.yml | |
workflow_conclusion: completed | |
- name: Get PR number | |
id: pr_number | |
run: echo "pr_number=$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT | |
- name: Post PR comment | |
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
number: ${{ steps.pr_number.outputs.pr_number }} | |
path: linting-logs/lint_results.md |