From 9fbf62b0975d19c7ac3048360ed8889641de9c63 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Mon, 23 Dec 2024 00:06:06 +0100 Subject: [PATCH] test forgejo action bash --- .forgejo/workflows/hugo.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/hugo.yaml b/.forgejo/workflows/hugo.yaml index afc1cea..4b699d6 100644 --- a/.forgejo/workflows/hugo.yaml +++ b/.forgejo/workflows/hugo.yaml @@ -20,19 +20,20 @@ jobs: - name: Install rsync and bash run: apt update && apt install -y rsync bash - name: Set baseURL - shell: /usr/bin/bash run: | echo "Checking current branch." echo -n "https://dev.etoiledebethleem.fr" > /base_url.txt - if [[ "${{ env.github_ref_name }}" == "master" ]]; then + if [ "${{ env.github_ref_name }}" = "master" ] + then echo "Using master config" echo -n "https://etoiledebethleem.fr" > /base_url.txt fi - if [[ "${{ env.github_ref_name }}" == "develop" ]]; then + if [ "${{ env.github_ref_name }}" = "develop" ] + then echo "Using develop config" echo -n "https://preview.etoiledebethleem.fr" > /base_url.txt fi - ls / + ls -la /base_url.txt cat /base_url.txt - uses: actions/checkout@v4 with: