2024-01-07 23:48:36 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
docs=$1
|
|
|
|
docs_pr=$2
|
|
|
|
end_to_end=$3
|
|
|
|
end_to_end_ref=$4
|
|
|
|
|
2024-01-10 15:57:22 +01:00
|
|
|
if ! test -d /srv/contexts ; then
|
|
|
|
echo no contexts in /srv/contexts, do nothing
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2024-01-07 23:48:36 +01:00
|
|
|
cd $docs/docs/user
|
|
|
|
|
2024-01-13 18:19:56 +01:00
|
|
|
if test "$FORCE_VERSION" = "$VERSION" || ! test -f actions-contexts/version.txt || test "$VERSION" != $(cat actions-contexts/version.txt) ; then
|
2024-01-07 23:48:36 +01:00
|
|
|
rm -fr actions-contexts
|
|
|
|
mkdir actions-contexts
|
|
|
|
echo "$VERSION" > actions-contexts/version.txt
|
|
|
|
# populated by actions/run.sh
|
|
|
|
rsync -av /srv/contexts/ actions-contexts/
|
|
|
|
fi
|