From 8aa95dc301193a1018c5eec25343d658ee90a2f6 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 10 Jan 2024 15:57:22 +0100 Subject: [PATCH] docs: do nothing if /srv/contexts does not exist --- .forgejo/cascading-docs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/cascading-docs b/.forgejo/cascading-docs index 97e1d8a..7bc4103 100755 --- a/.forgejo/cascading-docs +++ b/.forgejo/cascading-docs @@ -7,6 +7,11 @@ 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 -f actions-contexts/version.txt || test "$VERSION" != $(cat actions-contexts/version.txt) ; then