From 863e8de0d317f05ba7f91e47d4f4230411a72f69 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Fri, 24 May 2024 12:33:19 +0200 Subject: [PATCH] Fix condition Signed-off-by: Benoit Donneaux --- .gitea/workflows/jekyll.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/jekyll.yaml b/.gitea/workflows/jekyll.yaml index 0595c39..cef22f8 100644 --- a/.gitea/workflows/jekyll.yaml +++ b/.gitea/workflows/jekyll.yaml @@ -45,7 +45,7 @@ jobs: id: build_site run: | # Overwrite the baseurl for previewonly - if [ "${{ gitea.event }}" = 'pull_request' ]; then + if [ "${{ gitea.event_name }}" = '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 @@ -100,5 +100,5 @@ jobs: id: fail-on-error if: | steps.build_site.outcome != 'success' - || (gittea.event_name == 'pull_request' && steps.deploy_site.outcome != 'success') + || steps.deploy_site.outcome != 'success' run: exit 1