Skip to content

Commit c7084cf

Browse files
committed
CI: Limit COMMIT_MSG to subject line
1 parent dc98e06 commit c7084cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
run: |
3636
if [[ -z "$COMMIT_MSG" ]]; then
3737
COMMIT_MSG=$(git show -s --format=%s)
38+
else
39+
COMMIT_MSG=$(echo $COMMIT_MSG | head -n 1)
3840
fi
3941
echo $COMMIT_MSG
4042
echo "commit_message=$COMMIT_MSG" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)