forked from common-workflow-language/cwl-v1.3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.bash
More file actions
17 lines (17 loc) · 707 Bytes
/
render.bash
File metadata and controls
17 lines (17 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
if [[ -z "$WORKSPACE" ]] ; then
WORKSPACE=$PWD/temp/
fi
mkdir -p $WORKSPACE
repo=https://github.com/common-workflow-language/cwl-website \
bn=$WORKSPACE/$(basename $repo)
if [[ -d $bn ]] ; then
(cd $bn && git fetch origin && git reset --hard origin/main)
else
git clone $repo $bn && pushd $bn; git checkout main ; git show --no-patch ; popd
fi
CURDIR=$PWD
pushd $WORKSPACE/cwl-website ; ln -s $CURDIR v1.3 ; popd
cp cwlsite-v1.3-only-job.yaml $WORKSPACE/cwl-website/site/
mkdir -p render
cwltool $@ --no-container --cache $WORKSPACE/cache --outdir $PWD/render --relax-path-checks $WORKSPACE/cwl-website/site/cwlsite.cwl $WORKSPACE/cwl-website/site/cwlsite-v1.3-only-job.yaml