mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-07-21 02:05:52 +00:00
Allow Git diff in CI container
This commit is contained in:
@@ -53,6 +53,7 @@ jobs:
|
||||
# first and second parents are the exact base and head commits used
|
||||
# for this run, even when the event SHAs are not exposed as refs in
|
||||
# the job container.
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
BASE_SHA="HEAD^1"
|
||||
HEAD_SHA="HEAD^2"
|
||||
echo "Base: $(git rev-parse "$BASE_SHA"), Head: $(git rev-parse "$HEAD_SHA")"
|
||||
|
||||
Reference in New Issue
Block a user