actions: CASCADE_DOCS_FORCE_VERSION can force generating a version

This commit is contained in:
Earl Warren 2024-01-13 18:19:56 +01:00
parent dcc61603a2
commit 6236202f09
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 5 additions and 1 deletions

View file

@ -14,7 +14,7 @@ fi
cd $docs/docs/user
if ! test -f actions-contexts/version.txt || test "$VERSION" != $(cat actions-contexts/version.txt) ; then
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