Skip to content

Commit f1aa3f9

Browse files
committed
fix linting with gitignore
1 parent 6e7344d commit f1aa3f9

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/template_version_comment.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ jobs:
1010
steps:
1111
- name: Check out pipeline code
1212
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
13+
with:
14+
ref: ${{ github.event.pull_request.head.sha }}
1315

1416
- name: Read template version from .nf-core.yml
15-
uses: pietrobolcato/action-read-yaml@1.0.0
17+
uses: nichmor/minimal-read-yaml@v0.0.2
1618
id: read_yml
1719
with:
1820
config: ${{ github.workspace }}/.nf-core.yml
@@ -21,23 +23,23 @@ jobs:
2123
run: |
2224
python -m pip install --upgrade pip
2325
pip install nf-core==${{ steps.read_yml.outputs['nf_core_version'] }}
24-
2526
- name: Check nf-core outdated
2627
id: nf_core_outdated
27-
run: pip list --outdated | grep nf-core
28+
run: echo "OUTPUT=$(pip list --outdated | grep nf-core)" >> ${GITHUB_ENV}
2829

2930
- name: Post nf-core template version comment
3031
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
3132
if: |
32-
${{ steps.nf_core_outdated.outputs.stdout }} =~ 'nf-core'
33+
contains(env.OUTPUT, 'nf-core')
3334
with:
3435
repo-token: ${{ secrets.NF_CORE_BOT_AUTH_TOKEN }}
3536
allow-repeats: false
3637
message: |
37-
## :warning: Newer version of the nf-core template is available.
38-
39-
Your pipeline is using an old version of the nf-core template: ${{ steps.read_yml.outputs['nf_core_version'] }}.
40-
Please update your pipeline to the latest version.
41-
42-
For more documentation on how to update your pipeline, please see the [nf-core documentation](https://github.com/nf-core/tools?tab=readme-ov-file#sync-a-pipeline-with-the-template) and [Synchronisation documentation](https://nf-co.re/docs/contributing/sync).
38+
> [!WARNING]
39+
> Newer version of the nf-core template is available.
40+
>
41+
> Your pipeline is using an old version of the nf-core template: ${{ steps.read_yml.outputs['nf_core_version'] }}.
42+
> Please update your pipeline to the latest version.
43+
>
44+
> For more documentation on how to update your pipeline, please see the [nf-core documentation](https://github.com/nf-core/tools?tab=readme-ov-file#sync-a-pipeline-with-the-template) and [Synchronisation documentation](https://nf-co.re/docs/contributing/sync).
4345
#

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.nextflow*
2-
.nf-test*
32
work/
43
data/
54
results/
65
.DS_Store
76
testing/
87
testing*
98
*.pyc
9+
.nf-test*

0 commit comments

Comments
 (0)