From afc25b5f8638d07f5e795f7118cdc7caeda4a5f0 Mon Sep 17 00:00:00 2001 From: ZakaryCode Date: Tue, 17 Nov 2020 15:38:25 +0800 Subject: [PATCH] fix: msg --- .github/workflows/auto-review.yml | 2 +- .github/workflows/publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-review.yml b/.github/workflows/auto-review.yml index bd004a4b948c..fbf99fc9d998 100644 --- a/.github/workflows/auto-review.yml +++ b/.github/workflows/auto-review.yml @@ -18,7 +18,7 @@ jobs: run: echo "$GITHUB_CONTEXT" - name: Get commit message run: | - COMMIT_MESSAGE="$(git log --format=%B -n 1) ${{ github.event.after }}" + COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }}) echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV - name: Show commit message run : echo "$commitmsg" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3bcd06ed9820..608b24e2b800 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: run: echo "$GITHUB_CONTEXT" - name: Get commit message run: | - COMMIT_MESSAGE="$(git log --format=%B -n 1) ${{ github.event.after }}" + COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }}) echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV - name: Show commit message run : echo "$commitmsg"