Skip to content

Commit

Permalink
Added Cylc Doc to Install Cylc Components
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim authored Oct 4, 2023
1 parent 0f88eb4 commit 0f5c6eb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions install-cylc-components/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ inputs:
metomi_rose:
description: Install metomi-rose (default=false)
default: false
cylc_doc:
description: Install cylc-doc (default=false)
default: false

cylc_flow_tag:
description: Manually specify cylc-flow tag/branch e.g. 8.0.0
Expand All @@ -38,6 +41,9 @@ inputs:
metomi_rose_tag:
description: Manually specify metomi-rose tag/branch e.g. 2.0.0
required: false
cylc_doc_tag:
description: Manually specify cylc-doc tag/branch e.g. 2.0.0
required: false

cylc_flow_repo:
description: Override cylc-flow repo e.g. me/cylc-flow
Expand All @@ -55,6 +61,10 @@ inputs:
description: Override metomi-rose repo e.g. me/rose
default: metomi/rose
required: false
cylc_doc_repo:
description: Override cylc-doc repo e.g. me/cylc-rose
default: cylc/cylc-doc
required: false

cylc_flow_opts:
description: cylc-flow optional dependencies e.g. foo,bar,baz
Expand All @@ -72,6 +82,10 @@ inputs:
description: metomi-rose optional dependencies e.g. foo,bar,baz
default: all
required: false
cylc_doc_opts:
description: cylc-doc optional dependencies e.g. foo,bar,baz
default: all
required: false

runs:
using: composite
Expand Down Expand Up @@ -99,6 +113,7 @@ runs:
cylc_uis: ${{ inputs.cylc_uiserver_tag || steps.get_tag.outputs.cylc_uiserver }}
meto_rose: ${{ inputs.metomi_rose_tag || steps.get_tag.outputs.rose }}
cylc_rose: ${{ inputs.cylc_rose_tag || steps.get_tag.outputs.cylc_rose }}
cylc_rose: ${{ inputs.cylc_doc_tag || steps.get_tag.outputs.cylc_doc }}
run: |
REQS=requirement.txt
touch "$REQS"
Expand All @@ -122,6 +137,11 @@ runs:
"cylc-rose[${{ inputs.cylc_rose_opts }}] @ git+https://github.com/${{ inputs.cylc_rose_repo }}@${cylc_rose}" \
>> "$REQS"
fi
if [[ ${{ inputs.cylc_rose }} == true ]]; then
echo \
"cylc-doc[${{ inputs.cylc_doc_opts }}] @ git+https://github.com/${{ inputs.cylc_doc_repo }}@${cylc_doc}" \
>> "$REQS"
fi
cat "$REQS"
pip install -r "$REQS"

0 comments on commit 0f5c6eb

Please sign in to comment.