Skip to content

Commit d13681d

Browse files
authored
Merge pull request #744 from nipreps/ci/fix_check
CI: Fix commit check
2 parents 4a40e35 + 36ceac7 commit d13681d

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)