From 79cc059d987d7e4032425c0829e508566807f05b Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 7 Jan 2024 23:48:36 +0100 Subject: [PATCH] actions: update the documentation with context examples (script) --- .forgejo/cascading-docs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .forgejo/cascading-docs diff --git a/.forgejo/cascading-docs b/.forgejo/cascading-docs new file mode 100755 index 0000000..97e1d8a --- /dev/null +++ b/.forgejo/cascading-docs @@ -0,0 +1,18 @@ +#!/bin/bash + +set -ex + +docs=$1 +docs_pr=$2 +end_to_end=$3 +end_to_end_ref=$4 + +cd $docs/docs/user + +if ! 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