end-to-end/.forgejo/cascading-docs

24 lines
521 B
Bash
Executable file

#!/bin/bash
set -ex
docs=$1
docs_pr=$2
end_to_end=$3
end_to_end_ref=$4
if ! test -d /srv/contexts ; then
echo no contexts in /srv/contexts, do nothing
exit 0
fi
cd $docs/docs/user
if test "$FORCE_VERSION" = "$VERSION" || ! test -f actions-contexts/version.txt || test "$VERSION" != $(cat actions-contexts/version.txt) ; then
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