From 9966ed3c5c503c638d82aa715b88d487b3bd6aa3 Mon Sep 17 00:00:00 2001 From: Laith Date: Tue, 19 Nov 2024 08:55:52 -0500 Subject: [PATCH] fixup --- .github/workflows/pages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 16cb410..98e3ab3 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -36,7 +36,8 @@ jobs: # Fetch the commit hash for the PR branch git fetch origin $PR_BRANCH - LATEST_COMMIT=$(git log -n 1 --format=%H $PR_BRANCH) + + LATEST_COMMIT=$(git log -n 1 --oneline $PR_BRANCH | cut -d ' ' -f 1) echo "Latest commit hash: $LATEST_COMMIT" echo "LATEST_COMMIT=${LATEST_COMMIT}" >> $GITHUB_ENV