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"