From d9c732b290ee92d9e8190ed5360065e7e25b75c1 Mon Sep 17 00:00:00 2001 From: Taylor Baldwin Date: Thu, 15 Aug 2024 17:09:04 -0400 Subject: [PATCH] fix getting git commit (#10) --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 69f4998..d3d779b 100644 --- a/action.yml +++ b/action.yml @@ -58,8 +58,10 @@ runs: - name: Get commit message shell: bash run: | - COMMIT_MSG=$(git log -1 --pretty=%B) - echo "COMMIT_MSG=$COMMIT_MSG" >> $GITHUB_ENV + echo 'COMMIT_MSG<> $GITHUB_ENV + git log -1 --pretty=%B >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV + - name: Extract Docker metadata id: meta