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: