Skip to content

Commit 1f3dcb5

Browse files
committed
correct md parameter?
1 parent e2981a5 commit 1f3dcb5

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/build-docs.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,10 @@ jobs:
4141
uses: nf-core/setup-nextflow@v2
4242
- name: Build parameter docs
4343
run: nf-core pipelines schema docs --format markdown --columns parameter,description,default --output docs/parameters.md --force
44-
- name: Read parameter tip
45-
id: read_tip
44+
- name: Prepend template to parameters.md
4645
run: |
47-
tip=$(cat docs/template/parameter_tip.md)
48-
echo "tip_content=$tip" >> $GITHUB_ENV
49-
- name: Append content to parameters.md
50-
run: |
51-
modified_content=$(awk '/^#/ { print; print "${{ env.tip_content }}"; exit } 1' docs/parameters.md)
52-
echo "$modified_content" > docs/parameters.md
46+
cat docs/template/parameter_tip.md docs/parameters.md > tmp.md
47+
mv tmp.md docs/parameters.md
5348
- name: Build docs
5449
run: |
5550
if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then

docs/template/parameter_tip.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!!! Tip "Need Something more interactive?"
2-
Use [`nf-core launch`](https://nf-co.re/tools#launch-a-pipeline) to interactivly set your parameters:
2+
Use [`nf-core pipelines launch`](https://nf-co.re/docs/nf-core-tools/pipelines/launch) to interactivly set your parameters:
33
```console
44
nf-core pipelines launch Joon-Klaps/viralgenie
55
```

0 commit comments

Comments
 (0)