From 48e040e9011396376342c9fa064d6ea9eb785c86 Mon Sep 17 00:00:00 2001 From: Emanuele De Cupis Date: Fri, 7 Jul 2023 12:44:55 +0200 Subject: [PATCH] fix variables --- .github/workflows/gh-pages.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 06ff1f748..c114d0a67 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -45,10 +45,9 @@ jobs: - name: Build branch run: |- - PATH="" - [[ "$GITHUB_REF" != "versione_corrente" ]] && PATH="${GITHUB_REF}/" # note the trailing slash - sphinx-build -b html docs/it/ html/$PATH/it - sphinx-build -b html docs/en/ html/$PATH/en + [[ "$GITHUB_REF" != "versione_corrente" ]] && P="${GITHUB_REF}/" || P="" # note the trailing slash + sphinx-build -b html docs/it/ html/$P/it + sphinx-build -b html docs/en/ html/$P/en # Runs a single command using the runners shell - name: Create GH page index