Skip to content

Commit 237ac6a

Browse files
authored
Merge branch 'main' into add_accordion_pipelineps
2 parents db38add + cb73442 commit 237ac6a

File tree

1,539 files changed

+163630
-65072
lines changed

Some content is hidden

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

1,539 files changed

+163630
-65072
lines changed

.cache.tar.xz

213 KB
Binary file not shown.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/content @nf-core/docs

.github/renovate.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: ["github>nf-core/ops//.github/renovate/default.json5", "config:recommended", "schedule:monthly"]
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Astro
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Open PR with tools API docs based on webhook call
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
ref_name:
6+
description: 'The name of the release branch'
7+
required: true
8+
default: 'dev'
9+
10+
jobs:
11+
api-docs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Checkout tools code
17+
uses: actions/checkout@v4
18+
with:
19+
repository: 'nf-core/tools'
20+
ref: ${{ inputs.ref_name }}
21+
path: 'tools'
22+
23+
- name: setup node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20'
27+
28+
- name: Install dependencies
29+
run: |
30+
npm install remark unist-util-visit
31+
32+
# Install pre-commit
33+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
34+
with:
35+
python-version: 3.11
36+
37+
# install prettier plugins
38+
- run: npm install --only=dev
39+
40+
- name: Install pre-commit
41+
run: pip install pre-commit
42+
43+
- name: install nf-core
44+
run: |
45+
cd tools
46+
pip install --upgrade -r requirements-dev.txt -e .
47+
48+
- name: run API generation script
49+
run: |
50+
cd tools
51+
bash docs/api/generate-api-docs.sh --release ${{ inputs.ref_name }}
52+
53+
- name: remove tools code
54+
run: rm -rf tools
55+
56+
- name: Run pre-commit
57+
id: pre-commit
58+
run: pre-commit run --all-files
59+
continue-on-error: true
60+
61+
- name: Commit & push changes
62+
id: commit-and-push
63+
run: |
64+
git config user.email "[email protected]"
65+
git config user.name "nf-core-bot"
66+
# restore package.json changes
67+
git restore package.json
68+
git restore package-lock.json
69+
git add .
70+
git status
71+
git commit -m "[automated] Update nf-core/tools API docs for ${{ inputs.ref_name }}"
72+
73+
- name: Create PR
74+
uses: peter-evans/create-pull-request@v3
75+
with:
76+
token: ${{ secrets.GITHUB_TOKEN }}
77+
commit-message: Update nf-core/tools API docs for ${{inputs.ref_name}}
78+
title: Update nf-core/tools API docs for ${{inputs.ref_name}}
79+
body: |
80+
This PR updates the nf-core/tools API docs for ${{inputs.ref_name}}.
81+
Please review the changes and merge if they look good.
82+
branch: 'update-api-docs-${{inputs.ref_name}}'
83+
delete-branch: true
84+
base: 'main'
85+
draft: false

.github/workflows/build-json-files-and-md-cache.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: build json files and md-cache
22

33
on:
4-
schedule: # every day at 7am
5-
- cron: '0 7 * * *'
4+
schedule: # every day at 2am and 2pm
5+
- cron: '0 2,14 * * *'
66
workflow_dispatch:
7+
repository_dispatch:
8+
types: [update-website]
79

810
jobs:
911
build-component-json:
@@ -16,14 +18,14 @@ jobs:
1618
id: date
1719
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
1820
# Set up the main website repo
19-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
2022
with:
2123
fetch-depth: 0 # Don't do a shallow clone
2224
token: ${{secrets.NF_CORE_BOT_AUTH_TOKEN}} # Needed for pushing back to the repo
2325

2426
# install npm dependencies
2527
- name: Set up node.js
26-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4
2729
with:
2830
node-version: 20
2931
cache: 'npm'
@@ -88,7 +90,7 @@ jobs:
8890
# Create a PR if there are too many lines changed
8991
- name: Create PR with changes
9092
if: ${{ steps.check_lines.outputs.changes }}
91-
uses: peter-evans/create-pull-request@v5
93+
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5
9294
with:
9395
token: ${{ secrets.CREATE_PR_TOKEN }}
9496
commit-message: 'chore: update pipeline.json and component.json'

.github/workflows/fix-linting.yml

Lines changed: 62 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
# Use the @nf-core-bot token to check out so we can push later
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
1717
with:
1818
token: ${{ secrets.nf_core_bot_auth_token }}
1919

20+
# indication that the linting is being fixed
21+
- name: React on comment
22+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
23+
with:
24+
comment-id: ${{ github.event.comment.id }}
25+
reactions: eyes
26+
2027
# Action runs on the issue comment, so we don't get the PR by default
2128
# Use the gh cli to check out the PR
2229
- name: Checkout Pull Request
@@ -25,14 +32,64 @@ jobs:
2532
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}
2633

2734
# Install and run pre-commit
28-
- uses: actions/setup-python@v3
29-
- uses: pre-commit/[email protected]
35+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
36+
with:
37+
python-version: 3.11
38+
39+
# install prettier plugins
40+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4
41+
with:
42+
node-version: 20
43+
- run: npm install --only=dev
44+
45+
- name: Install pre-commit
46+
run: pip install pre-commit
47+
48+
- name: Run pre-commit
49+
id: pre-commit
50+
run: pre-commit run --all-files
51+
continue-on-error: true
52+
53+
# indication that the linting has finished
54+
- name: react if linting finished succesfully
55+
if: steps.pre-commit.outcome == 'success'
56+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
57+
with:
58+
comment-id: ${{ github.event.comment.id }}
59+
reactions: '+1'
3060

3161
- name: Commit & push changes
32-
if: steps.prettier_status.outputs.result == 'fail'
62+
id: commit-and-push
63+
if: steps.pre-commit.outcome == 'failure'
3364
run: |
3465
git config user.email "[email protected]"
3566
git config user.name "nf-core-bot"
3667
git config push.default upstream
68+
git add .
3769
git status
38-
git diff --quiet || (git commit -am "[automated] Fix linting with Prettier" && git push)
70+
git commit -m "[automated] Fix code linting"
71+
git push
72+
73+
- name: react if linting errors were fixed
74+
id: react-if-fixed
75+
if: steps.commit-and-push.outcome == 'success'
76+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
77+
with:
78+
comment-id: ${{ github.event.comment.id }}
79+
reactions: hooray
80+
81+
- name: react if linting errors were not fixed
82+
if: steps.commit-and-push.outcome == 'failure'
83+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
84+
with:
85+
comment-id: ${{ github.event.comment.id }}
86+
reactions: confused
87+
88+
- name: react if linting errors were not fixed
89+
if: steps.commit-and-push.outcome == 'failure'
90+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
91+
with:
92+
issue-number: ${{ github.event.issue.number }}
93+
body: |
94+
@${{ github.actor }} I tried to fix the linting errors, but it didn't work. Please fix them manually.
95+
See [CI log](https://github.com/nf-core/website/actions/runs/${{ github.run_id }}) for more details.

.github/workflows/linting.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint code
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
13+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4
14+
with:
15+
node-version: 20
16+
- run: npm install --only=dev
17+
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
18+
vale:
19+
name: runner / vale
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
23+
- uses: errata-ai/vale-action@reviewdog

.github/workflows/playwright.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
timeout-minutes: 30
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
16+
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4
1717
with:
1818
node-version: 18
1919
cache: 'npm'
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Playwright Browsers
2323
run: npx playwright install --with-deps
2424
- name: Waiting for 200 from the Netlify Preview
25-
uses: jakepartusch/[email protected]
25+
uses: jakepartusch/wait-for-netlify-action@f1e137043864b9ab9034ae3a5adc1c108e3f1a48 # v1.4
2626
id: waitFor200
2727
with:
2828
site_name: 'nf-core'
@@ -31,7 +31,7 @@ jobs:
3131
run: npx playwright test
3232
env:
3333
PLAYWRIGHT_TEST_BASE_URL: 'https://deploy-preview-${{github.event.pull_request.number}}--nf-core.netlify.app'
34-
- uses: actions/upload-artifact@v3
34+
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4
3535
if: always()
3636
with:
3737
name: playwright-report

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)