From 26a8c171870e70898a371030d18f89ba822b48be Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Thu, 8 Dec 2022 22:48:11 +0000 Subject: [PATCH] Use proper working directory (fixup #4337) --- .github/workflows/actions.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 5e7c95fed..a925ef1d5 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -44,11 +44,12 @@ jobs: id: check-diffs run: | set +e + cd src MERGE_BASE=`git merge-base origin/main HEAD` function get_changes() { # name, paths... local name="$1" shift - git -C "$GITHUB_WORKSPACE/src" diff --exit-code "$MERGE_BASE" -- "$@" + git diff --exit-code "$MERGE_BASE" -- "$@" echo "$name-changed=$?" >> "$GITHUB_OUTPUT" } get_changes cli CMakeLists.txt Transmission.xcodeproj third-party libtransmission cli