forked from AnupamAS0x1/create-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AnupamAS0x1/main
tt
- Loading branch information
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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@v2 | ||
with: | ||
workflow: linting.yml | ||
workflow_conclusion: completed | ||
|
||
- name: Get PR number | ||
id: pr_number | ||
run: echo "::set-output name=pr_number::$(cat linting-logs/PR_number.txt)" | ||
|
||
- name: Post PR comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
number: ${{ steps.pr_number.outputs.pr_number }} | ||
path: linting-logs/lint_results.md |
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