Use proper working directory (fixup #4337)

This commit is contained in:
Mike Gelfand 2022-12-08 22:48:11 +00:00
parent 0061e4f9a9
commit 26a8c17187
No known key found for this signature in database
GPG Key ID: CC4DBBE3299B16F8
1 changed files with 2 additions and 1 deletions

View File

@ -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