Skip to content

Commit 36ceac7

Browse files
authored
CI: Fix commit check
GitHub string interpolation seems to break in the run portion. Use `env` instead. We could probably also just quote it...
1 parent 4a40e35 commit 36ceac7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ jobs:
2626
- name: Print head git commit message
2727
id: get_commit_message
2828
run: |
29-
COMMIT_MSG=${{ github.event.head_commit.message }}
30-
if [[ -z $COMMIT_MSG ]]; then
29+
if [[ -z "$COMMIT_MSG" ]]; then
3130
COMMIT_MSG=$(git show -s --format=%s)
3231
fi
3332
echo $COMMIT_MSG
3433
echo "::set-output name=commit_message::$COMMIT_MSG"
34+
env:
35+
COMMIT_MSG: ${{ github.event.head_commit.message }}
3536

3637
build:
3738
needs: check_if_skip

0 commit comments

Comments
 (0)