Skip to content

Commit 663b47c

Browse files
committed
Template update for nf-core/tools version 2.13
1 parent 5240672 commit 663b47c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2108
-1406
lines changed

.editorconfig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ end_of_line = unset
1818
insert_final_newline = unset
1919
trim_trailing_whitespace = unset
2020
indent_style = unset
21-
indent_size = unset
21+
[/subworkflows/nf-core/**]
22+
charset = unset
23+
end_of_line = unset
24+
insert_final_newline = unset
25+
trim_trailing_whitespace = unset
26+
indent_style = unset
2227

2328
[/assets/email*]
2429
indent_size = unset
@@ -28,5 +33,5 @@ indent_size = unset
2833
indent_style = unset
2934

3035
# ignore python
31-
[*.{py}]
36+
[*.{py,md}]
3237
indent_style = unset

.github/workflows/awsfulltest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Launch workflow via tower
17-
uses: seqeralabs/action-tower-launch@v2
17+
uses: seqeralabs/action-tower-launch@922e5c8d5ac4e918107ec311d2ebbd65e5982b3d # v2
1818
# TODO nf-core: You can customise AWS full pipeline tests as required
1919
# Add full size test data (but still relatively small datasets for few samples)
2020
# on the `test_full.config` test runs with only one set of parameters
@@ -31,7 +31,7 @@ jobs:
3131
}
3232
profiles: test_full
3333

34-
- uses: actions/upload-artifact@v4
34+
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
3535
with:
3636
name: Tower debug log file
3737
path: |

.github/workflows/awstest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
# Launch workflow using Tower CLI tool action
1414
- name: Launch workflow via tower
15-
uses: seqeralabs/action-tower-launch@v2
15+
uses: seqeralabs/action-tower-launch@922e5c8d5ac4e918107ec311d2ebbd65e5982b3d # v2
1616
with:
1717
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
1818
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
@@ -25,7 +25,7 @@ jobs:
2525
}
2626
profiles: test
2727

28-
- uses: actions/upload-artifact@v4
28+
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
2929
with:
3030
name: Tower debug log file
3131
path: |

.github/workflows/branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
2020
- name: Post PR comment
2121
if: failure()
22-
uses: mshick/add-pr-comment@v2
22+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
2323
with:
2424
message: |
2525
## This PR is against the `master` branch :x:

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ jobs:
2828
- "latest-everything"
2929
steps:
3030
- name: Check out pipeline code
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
3232

3333
- name: Install Nextflow
34-
uses: nf-core/setup-nextflow@v1
34+
uses: nf-core/setup-nextflow@b9f764e8ba5c76b712ace14ecbfcef0e40ae2dd8 # v1
3535
with:
3636
version: "${{ matrix.NXF_VER }}"
3737

38+
- name: Disk space cleanup
39+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
40+
3841
- name: Run pipeline with test data
3942
# TODO nf-core: You can customise CI pipeline run tests as required
4043
# For example: adding multiple test runs with different parameters

.github/workflows/clean-up.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
issues: write
1111
pull-requests: write
1212
steps:
13-
- uses: actions/stale@v9
13+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
1414
with:
1515
stale-issue-message: "This issue has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment otherwise this issue will be closed in 20 days."
1616
stale-pr-message: "This PR has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment if it is still useful."

.github/workflows/download_pipeline.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ name: Test successful pipeline download with 'nf-core download'
66
# - the head branch of the pull request is updated, i.e. if fixes for a release are pushed last minute to dev.
77
on:
88
workflow_dispatch:
9+
inputs:
10+
testbranch:
11+
description: "The specific branch you wish to utilize for the test execution of nf-core download."
12+
required: true
13+
default: "dev"
914
pull_request:
1015
types:
1116
- opened
@@ -23,13 +28,13 @@ jobs:
2328
runs-on: ubuntu-latest
2429
steps:
2530
- name: Install Nextflow
26-
uses: nf-core/setup-nextflow@v1
31+
uses: nf-core/setup-nextflow@b9f764e8ba5c76b712ace14ecbfcef0e40ae2dd8 # v1
2732

28-
- uses: actions/setup-python@v5
33+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
2934
with:
3035
python-version: "3.11"
3136
architecture: "x64"
32-
- uses: eWaterCycle/setup-singularity@v7
37+
- uses: eWaterCycle/setup-singularity@931d4e31109e875b13309ae1d07c70ca8fbc8537 # v7
3338
with:
3439
singularity-version: 3.8.3
3540

@@ -42,13 +47,13 @@ jobs:
4247
run: |
4348
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
4449
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
45-
echo "REPO_BRANCH=${GITHUB_REF#refs/heads/}" >> ${GITHUB_ENV}
50+
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}
4651
4752
- name: Download the pipeline
4853
env:
4954
NXF_SINGULARITY_CACHEDIR: ./
5055
run: |
51-
nf-core download ${{ env.REPO_LOWERCASE }} \
56+
nf-core download ${{ env.REPO_LOWERCASE }} \
5257
--revision ${{ env.REPO_BRANCH }} \
5358
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
5459
--compress "none" \
@@ -64,4 +69,4 @@ jobs:
6469
env:
6570
NXF_SINGULARITY_CACHEDIR: ./
6671
NXF_SINGULARITY_HOME_MOUNT: true
67-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
72+
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results

.github/workflows/linting.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
pre-commit:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
1818

1919
- name: Set up Python 3.11
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
2121
with:
2222
python-version: 3.11
2323
cache: "pip"
@@ -32,12 +32,12 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Check out pipeline code
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
3636

3737
- name: Install Nextflow
38-
uses: nf-core/setup-nextflow@v1
38+
uses: nf-core/setup-nextflow@b9f764e8ba5c76b712ace14ecbfcef0e40ae2dd8 # v1
3939

40-
- uses: actions/setup-python@v5
40+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
4141
with:
4242
python-version: "3.11"
4343
architecture: "x64"
@@ -60,7 +60,7 @@ jobs:
6060

6161
- name: Upload linting log file artifact
6262
if: ${{ always() }}
63-
uses: actions/upload-artifact@v4
63+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
6464
with:
6565
name: linting-logs
6666
path: |

.github/workflows/linting_comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Download lint results
14-
uses: dawidd6/action-download-artifact@v3
14+
uses: dawidd6/action-download-artifact@f6b0bace624032e30a85a8fd9c1a7f8f611f5737 # v3
1515
with:
1616
workflow: linting.yml
1717
workflow_conclusion: completed
@@ -21,7 +21,7 @@ jobs:
2121
run: echo "pr_number=$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT
2222

2323
- name: Post PR comment
24-
uses: marocchino/sticky-pull-request-comment@v2
24+
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2
2525
with:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
number: ${{ steps.pr_number.outputs.pr_number }}

.github/workflows/release-announcements.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
toot:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: get topics and convert to hashtags
13+
id: get_topics
14+
run: |
15+
curl -s https://nf-co.re/pipelines.json | jq -r '.remote_workflows[] | select(.name == "${{ github.repository }}") | .topics[]' | awk '{print "#"$0}' | tr '\n' ' ' > $GITHUB_OUTPUT
16+
1217
- uses: rzr/fediverse-action@master
1318
with:
1419
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
@@ -20,11 +25,13 @@ jobs:
2025
2126
Please see the changelog: ${{ github.event.release.html_url }}
2227
28+
${{ steps.get_topics.outputs.GITHUB_OUTPUT }} #nfcore #openscience #nextflow #bioinformatics
29+
2330
send-tweet:
2431
runs-on: ubuntu-latest
2532

2633
steps:
27-
- uses: actions/setup-python@v5
34+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
2835
with:
2936
python-version: "3.10"
3037
- name: Install dependencies
@@ -56,7 +63,7 @@ jobs:
5663
bsky-post:
5764
runs-on: ubuntu-latest
5865
steps:
59-
- uses: zentered/[email protected]
66+
- uses: zentered/bluesky-post-action@80dbe0a7697de18c15ad22f4619919ceb5ccf597 # v0.1.0
6067
with:
6168
post: |
6269
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!

0 commit comments

Comments
 (0)