Skip to content

Commit 82a71c9

Browse files
committed
Template update for nf-core/tools version 1.12
1 parent fa449cb commit 82a71c9

18 files changed

+121
-43
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
---
2+
name: Bug report
3+
about: Report something that is broken or incorrect
4+
labels: bug
5+
---
6+
17
<!--
28
# nf-core/rnaseq bug report
39
410
Hi there!
511
612
Thanks for telling us about a problem with the pipeline.
7-
813
Please delete this text and anything that's not relevant from the template below:
914
-->
1015

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Join nf-core
4+
url: https://nf-co.re/join
5+
about: Please join the nf-core community here
6+
- name: "Slack #rnaseq channel"
7+
url: https://nfcore.slack.com/channels/rnaseq
8+
about: Discussion about the nf-core/rnaseq pipeline

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for the nf-core website
4+
labels: enhancement
5+
---
6+
17
<!--
28
# nf-core/rnaseq feature request
39

.github/workflows/awsfulltest.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ name: nf-core AWS full size tests
44
# It runs the -profile 'test_full' on AWS batch
55

66
on:
7-
release:
8-
types: [published]
7+
workflow_run:
8+
workflows: ["nf-core Docker push (release)"]
9+
types: [completed]
910
workflow_dispatch:
1011

1112
jobs:
@@ -15,7 +16,7 @@ jobs:
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: Setup Miniconda
18-
uses: goanpeca/setup-miniconda@v1.0.2
19+
uses: conda-incubator/setup-miniconda@v2
1920
with:
2021
auto-update-conda: true
2122
python-version: 3.7

.github/workflows/awstest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Setup Miniconda
16-
uses: goanpeca/setup-miniconda@v1.0.2
16+
uses: conda-incubator/setup-miniconda@v2
1717
with:
1818
auto-update-conda: true
1919
python-version: 3.7

.github/workflows/branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: nf-core branch protection
22
# This workflow is triggered on PRs to master branch on the repository
33
# It fails when someone tries to make a PR against the nf-core `master` branch instead of `dev`
44
on:
5-
pull_request:
5+
pull_request_target:
66
branches: [master]
77

88
jobs:

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,31 @@ jobs:
2020
strategy:
2121
matrix:
2222
# Nextflow versions: check pipeline minimum and current latest
23-
nxf_ver: ['19.10.0', '']
23+
nxf_ver: ['20.04.0', '']
2424
steps:
2525
- name: Check out pipeline code
2626
uses: actions/checkout@v2
2727

2828
- name: Check if Dockerfile or Conda environment changed
29-
uses: technote-space/get-diff-action@v1
29+
uses: technote-space/get-diff-action@v4
3030
with:
31-
PREFIX_FILTER: |
31+
FILES: |
3232
Dockerfile
3333
environment.yml
3434
3535
- name: Build new docker image
36-
if: env.GIT_DIFF
36+
if: env.MATCHED_FILES
3737
run: docker build --no-cache . -t nfcore/rnaseq:dev
3838

3939
- name: Pull docker image
40-
if: ${{ !env.GIT_DIFF }}
40+
if: ${{ !env.MATCHED_FILES }}
4141
run: |
4242
docker pull nfcore/rnaseq:dev
4343
docker tag nfcore/rnaseq:dev nfcore/rnaseq:dev
4444
4545
- name: Install Nextflow
46+
env:
47+
CAPSULE_LOG: none
4648
run: |
4749
wget -qO- get.nextflow.io | bash
4850
sudo mv nextflow /usr/local/bin/

.github/workflows/linting.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
uses: actions/checkout@v2
3939

4040
- name: Install Nextflow
41+
env:
42+
CAPSULE_LOG: none
4143
run: |
4244
wget -qO- get.nextflow.io | bash
4345
sudo mv nextflow /usr/local/bin/
@@ -57,12 +59,19 @@ jobs:
5759
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
5860
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5961
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }}
60-
run: nf-core -l lint_log.txt lint ${GITHUB_WORKSPACE}
62+
run: nf-core -l lint_log.txt lint ${GITHUB_WORKSPACE} --markdown lint_results.md
63+
64+
- name: Save PR number
65+
if: ${{ always() }}
66+
run: echo ${{ github.event.pull_request.number }} > PR_number.txt
6167

6268
- name: Upload linting log file artifact
6369
if: ${{ always() }}
6470
uses: actions/upload-artifact@v2
6571
with:
6672
name: linting-log-file
67-
path: lint_log.txt
73+
path: |
74+
lint_log.txt
75+
lint_results.md
76+
PR_number.txt
6877
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
name: nf-core linting comment
3+
# This workflow is triggered after the linting action is complete
4+
# It posts an automated comment to the PR, even if the PR is coming from a fork
5+
6+
on:
7+
workflow_run:
8+
workflows: ["nf-core linting"]
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Download lint results
15+
uses: dawidd6/action-download-artifact@v2
16+
with:
17+
workflow: linting.yml
18+
19+
- name: Get PR number
20+
id: pr_number
21+
run: echo "::set-output name=pr_number::$(cat linting-logs/PR_number.txt)"
22+
23+
- name: Post PR comment
24+
uses: marocchino/sticky-pull-request-comment@v2
25+
with:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
number: ${{ steps.pr_number.outputs.pr_number }}
28+
path: linting-logs/lint_results.md
29+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: nf-core Docker push (dev)
2+
# This builds the docker image and pushes it to DockerHub
3+
# Runs on nf-core repo releases and push event to 'dev' branch (PR merges)
4+
on:
5+
push:
6+
branches:
7+
- dev
8+
9+
jobs:
10+
push_dockerhub:
11+
name: Push new Docker image to Docker Hub (dev)
12+
runs-on: ubuntu-latest
13+
# Only run for the nf-core repo, for releases and merged PRs
14+
if: ${{ github.repository == 'nf-core/rnaseq' }}
15+
env:
16+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
17+
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
18+
steps:
19+
- name: Check out pipeline code
20+
uses: actions/checkout@v2
21+
22+
- name: Build new docker image
23+
run: docker build --no-cache . -t nfcore/rnaseq:dev
24+
25+
- name: Push Docker image to DockerHub (dev)
26+
run: |
27+
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
28+
docker push nfcore/rnaseq:dev

0 commit comments

Comments
 (0)