From 5feba3bd19f4c4ecff49c894603abcae7f637391 Mon Sep 17 00:00:00 2001 From: Stanislas Daniel Claude Dolcini Date: Mon, 9 Sep 2024 19:36:05 +0300 Subject: [PATCH] Try to fix the workflow breaking when using PRs --- .gitea/workflows/jobs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/jobs.yml b/.gitea/workflows/jobs.yml index 4d9eddb..722a30a 100644 --- a/.gitea/workflows/jobs.yml +++ b/.gitea/workflows/jobs.yml @@ -18,6 +18,7 @@ jobs: - name: Get changed files id: files run: | + git fetch origin ${{ github.event.pull_request.base.ref }} files=$(git diff-tree --no-commit-id --name-only -r HEAD origin/${{ github.event.pull_request.base.ref }}) files=$(echo "$files" | grep 'simulation/templates/' | grep '.xml' || true) files=$(echo "$files" | awk '{ gsub("community-mod/","", $0); print $0 }')