diff --git a/.github/workflows/auto-review.yml b/.github/workflows/auto-review.yml index 0aa279dcab4b..bd004a4b948c 100644 --- a/.github/workflows/auto-review.yml +++ b/.github/workflows/auto-review.yml @@ -18,12 +18,13 @@ jobs: run: echo "$GITHUB_CONTEXT" - name: Get commit message run: | - echo "name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV + COMMIT_MESSAGE="$(git log --format=%B -n 1) ${{ github.event.after }}" + echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV - name: Show commit message - run : echo $commitmsg + run : echo "$commitmsg" - name: Auto reviews branches uses: golfzaptw/action-auto-reviews-from-branches@master if: contains( env.commitmsg , '[auto review]' ) || contains(github.event.pull_request.title, '[auto review]') with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} EVENT_TYPE: APPROVE \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f5a4132a534..3bcd06ed9820 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,9 +21,10 @@ jobs: run: echo "$GITHUB_CONTEXT" - name: Get commit message run: | - echo "name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV + COMMIT_MESSAGE="$(git log --format=%B -n 1) ${{ github.event.after }}" + echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV - name: Show commit message - run : echo $commitmsg + run : echo "$commitmsg" - name: Setup Node ${{ matrix.node_version }} uses: actions/setup-node@v1 with: @@ -51,7 +52,7 @@ jobs: shell: bash -ex {0} run: | CURRENT_VERSION=$(node -p 'require("./lerna.json").version') - echo "name=CURRENT_VERSION::${CURRENT_VERSION}" >> $GITHUB_ENV + echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV - name: Tag Check if: startsWith( env.commitmsg , 'chore(release):' ) id: tag_check