Skip to content

Commit 15b3da1

Browse files
committed
Template update for nf-core/tools version 2.4
1 parent 4caab23 commit 15b3da1

File tree

13 files changed

+137
-132
lines changed

13 files changed

+137
-132
lines changed

.github/workflows/awsfulltest.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,3 @@ jobs:
2828
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnaseq/results-${{ github.sha }}"
2929
}
3030
profiles: test_full,aws_tower
31-
nextflow_config: |
32-
process.errorStrategy = 'retry'
33-
process.maxRetries = 3

.github/workflows/awstest.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ jobs:
2323
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnaseq/results-test-${{ github.sha }}"
2424
}
2525
profiles: test,aws_tower
26-
nextflow_config: |
27-
process.errorStrategy = 'retry'
28-
process.maxRetries = 3

.github/workflows/branch.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Check PRs
1414
if: github.repository == 'nf-core/rnaseq'
1515
run: |
16-
"{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/rnaseq ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]"
16+
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/rnaseq ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
1717
1818
# If the above check failed, post a comment on the PR explaining the failure
1919
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
@@ -42,4 +42,3 @@ jobs:
4242
Thanks again for your contribution!
4343
repo-token: ${{ secrets.GITHUB_TOKEN }}
4444
allow-repeats: false
45-
#

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ jobs:
4848
# Remember that you can parallelise this by using strategy.matrix
4949
run: |
5050
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
51-
52-
#

.github/workflows/fix-linting.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Fix linting from a comment
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
jobs:
7+
deploy:
8+
# Only run if comment is on a PR with the main repo, and if it contains the magic keywords
9+
if: >
10+
contains(github.event.comment.html_url, '/pull/') &&
11+
contains(github.event.comment.body, '@nf-core-bot fix linting') &&
12+
github.repository == 'nf-core/rnaseq'
13+
runs-on: ubuntu-latest
14+
steps:
15+
# Use the @nf-core-bot token to check out so we can push later
16+
- uses: actions/checkout@v3
17+
with:
18+
token: ${{ secrets.nf_core_bot_auth_token }}
19+
20+
# Action runs on the issue comment, so we don't get the PR by default
21+
# Use the gh cli to check out the PR
22+
- name: Checkout Pull Request
23+
run: gh pr checkout ${{ github.event.issue.number }}
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}
26+
27+
- uses: actions/setup-node@v2
28+
29+
- name: Install Prettier
30+
run: npm install -g prettier @prettier/plugin-php
31+
32+
# Check that we actually need to fix something
33+
- name: Run 'prettier --check'
34+
id: prettier_status
35+
run: |
36+
if prettier --check ${GITHUB_WORKSPACE}; then
37+
echo "::set-output name=result::pass"
38+
else
39+
echo "::set-output name=result::fail"
40+
fi
41+
42+
- name: Run 'prettier --write'
43+
if: steps.prettier_status.outputs.result == 'fail'
44+
run: prettier --write ${GITHUB_WORKSPACE}
45+
46+
- name: Commit & push changes
47+
if: steps.prettier_status.outputs.result == 'fail'
48+
run: |
49+
git config user.email "[email protected]"
50+
git config user.name "nf-core-bot"
51+
git config push.default upstream
52+
git add .
53+
git status
54+
git commit -m "[automated] Fix linting with Prettier"
55+
git push

.github/workflows/linting.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
wget -qO- get.nextflow.io | bash
4949
sudo mv nextflow /usr/local/bin/
5050
51-
- uses: actions/setup-python@v1
51+
- uses: actions/setup-python@v3
5252
with:
5353
python-version: "3.6"
5454
architecture: "x64"
@@ -78,5 +78,3 @@ jobs:
7878
lint_log.txt
7979
lint_results.md
8080
PR_number.txt
81-
82-
#

.github/workflows/linting_comment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ jobs:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
number: ${{ steps.pr_number.outputs.pr_number }}
2828
path: linting-logs/lint_results.md
29-
#

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
email_template.html
2+
.nextflow*
3+
work/
4+
data/
5+
results/
6+
.DS_Store
7+
testing/
8+
testing*
9+
*.pyc

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
## v3.7dev - [date]
6+
## v3.8dev - [date]
77

88
Initial release of nf-core/rnaseq, created with the [nf-core](https://nf-co.re/) template.
99

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
# ![nf-core/rnaseq](docs/images/nf-core/rnaseq_logo_light.png#gh-light-mode-only) ![nf-core/rnaseq](docs/images/nf-core/rnaseq_logo_dark.png#gh-dark-mode-only)
1+
# ![nf-core/rnaseq](docs/images/nf-core-rnaseq_logo_light.png#gh-light-mode-only) ![nf-core/rnaseq](docs/images/nf-core-rnaseq_logo_dark.png#gh-dark-mode-only)
22

33
[![GitHub Actions CI Status](https://github.com/nf-core/rnaseq/workflows/nf-core%20CI/badge.svg)](https://github.com/nf-core/rnaseq/actions?query=workflow%3A%22nf-core+CI%22)
44
[![GitHub Actions Linting Status](https://github.com/nf-core/rnaseq/workflows/nf-core%20linting/badge.svg)](https://github.com/nf-core/rnaseq/actions?query=workflow%3A%22nf-core+linting%22)
5-
[![AWS CI](https://img.shields.io/badge/CI%20tests-full%20size-FF9900?labelColor=000000&logo=Amazon%20AWS)](https://nf-co.re/rnaseq/results)
6-
[![Cite with Zenodo](http://img.shields.io/badge/DOI-10.5281/zenodo.XXXXXXX-1073c8?labelColor=000000)](https://doi.org/10.5281/zenodo.XXXXXXX)
7-
8-
[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A521.10.3-23aa62.svg?labelColor=000000)](https://www.nextflow.io/)
9-
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?labelColor=000000&logo=anaconda)](https://docs.conda.io/en/latest/)
10-
[![run with docker](https://img.shields.io/badge/run%20with-docker-0db7ed?labelColor=000000&logo=docker)](https://www.docker.com/)
11-
[![run with singularity](https://img.shields.io/badge/run%20with-singularity-1d355c.svg?labelColor=000000)](https://sylabs.io/docs/)
12-
13-
[![Get help on Slack](http://img.shields.io/badge/slack-nf--core%20%23rnaseq-4A154B?labelColor=000000&logo=slack)](https://nfcore.slack.com/channels/rnaseq)
14-
[![Follow on Twitter](http://img.shields.io/badge/twitter-%40nf__core-1DA1F2?labelColor=000000&logo=twitter)](https://twitter.com/nf_core)
15-
[![Watch on YouTube](http://img.shields.io/badge/youtube-nf--core-FF0000?labelColor=000000&logo=youtube)](https://www.youtube.com/c/nf-core)
5+
[![AWS CI](https://img.shields.io/badge/CI%20tests-full%20size-FF9900?logo=Amazon%20AWS)](https://nf-co.re/rnaseq/results)
6+
[![Cite with Zenodo](http://img.shields.io/badge/DOI-10.5281/zenodo.XXXXXXX-1073c8)](https://doi.org/10.5281/zenodo.XXXXXXX)
7+
8+
[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A521.10.3-23aa62.svg)](https://www.nextflow.io/)
9+
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?logo=anaconda)](https://docs.conda.io/en/latest/)
10+
[![run with docker](https://img.shields.io/badge/run%20with-docker-0db7ed?logo=docker)](https://www.docker.com/)
11+
[![run with singularity](https://img.shields.io/badge/run%20with-singularity-1d355c.svg)](https://sylabs.io/docs/)
12+
[![Launch on Nextflow Tower](https://img.shields.io/badge/Launch%20%F0%9F%9A%80-Nextflow%20Tower-%234256e7)](https://tower.nf/launch?pipeline=https://github.com/nf-core/rnaseq)
13+
14+
[![Get help on Slack](http://img.shields.io/badge/slack-nf--core%20%23rnaseq-4A154B?logo=slack)](https://nfcore.slack.com/channels/rnaseq)
15+
[![Follow on Twitter](http://img.shields.io/badge/twitter-%40nf__core-1DA1F2?logo=twitter)](https://twitter.com/nf_core)
16+
[![Watch on YouTube](http://img.shields.io/badge/youtube-nf--core-FF0000?logo=youtube)](https://www.youtube.com/c/nf-core)
1617

1718
## Introduction
1819

0 commit comments

Comments
 (0)