mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Use proper working directory (fixup #4337)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user