From f40badf034640530dc3bdfaf1e1be9603e656a43 Mon Sep 17 00:00:00 2001 From: Michal Ziemski Date: Fri, 20 Dec 2024 14:48:33 +0000 Subject: [PATCH] CI: fix commit msg extraction --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f9f4261b..27de1075 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,8 +28,8 @@ jobs: - name: Get last commit id: get-commit-msg run: | - echo "$(git log --pretty=%B -n 1 --skip 1)" - echo "commit-msg=$(git log --pretty=%B -n 1 --skip 1)" >> $GITHUB_OUTPUT + commit_msg=$(git log --pretty=%B -n 1 --skip 1 2>/dev/null) + echo "commit-msg=$commit_msg" >> $GITHUB_OUTPUT - name: Install dependencies run: python -m pip install requests yq