Skip to content

Commit

Permalink
Merge pull request #1 from AnupamAS0x1/main
Browse files Browse the repository at this point in the history
tt
  • Loading branch information
AnupamS01 authored Sep 23, 2023
2 parents 6ebe5c8 + 9ca3530 commit d3b3ede
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/nf-core.yaml
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
9 changes: 4 additions & 5 deletions .github/workflows/testWorkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:
run_id: ${{ github.event.workflow_run.id }}
name: artifact

- name: save artifact data
id: artifact
run: echo "::set-output name=id::$(<artifact.txt)"
- name: Save state
run: echo "artifact_id=${{ steps.artifact.outputs.id }}" >> $GITHUB_STATE

- name: usage artifact
run: echo ${{ steps.artifact.outputs.id }}
- name: Set output
run: echo "artifact_id=${{ steps.artifact.outputs.id }}" >> $GITHUB_OUTPUT

0 comments on commit d3b3ede

Please sign in to comment.