From 3ec0bdf4fcc0b3001982dd9e7953ce47e33976d0 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Fri, 24 May 2024 12:30:47 +0200 Subject: [PATCH] Show baseurl when overwritting Signed-off-by: Benoit Donneaux --- .gitea/workflows/jekyll.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/jekyll.yaml b/.gitea/workflows/jekyll.yaml index 86a8b14..0595c39 100644 --- a/.gitea/workflows/jekyll.yaml +++ b/.gitea/workflows/jekyll.yaml @@ -46,7 +46,9 @@ jobs: run: | # Overwrite the baseurl for previewonly if [ "${{ gitea.event }}" = 'pull_request' ]; then + echo "Overwriting baseurl for pull_request ${{ gitea.event.pull_request.number }}" sed -i -r -e 's/^baseurl:\s*"([^"]*)"/baseurl: "\1\/${{ gitea.event.pull_request.number }}"/' _config.yml + grep "baseurl:" _config.yml fi docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \ jekyll build --verbose