From 1f1a9cf64f13aac6f3829a2817835b34db67d5fe Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Fri, 16 Jul 2021 16:36:29 +0530 Subject: [PATCH] chore(github-action): condition correction Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- .github/workflows/publish-blog.yml | 4 ++-- .github/workflows/publish-book.yml | 2 +- .github/workflows/publish-docs.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-blog.yml b/.github/workflows/publish-blog.yml index 8969d38105..e780e08d45 100644 --- a/.github/workflows/publish-blog.yml +++ b/.github/workflows/publish-blog.yml @@ -14,13 +14,13 @@ jobs: fetch-depth: 2 - name: Check for update run: | - echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-book) = noco-blog ]] && echo 'OK')" >> $GITHUB_ENV + echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-blog) = noco-blog ]] && echo 'OK')" >> $GITHUB_ENV - uses: actions/setup-node@v2 if: ${{ env.CHANGED == 'OK' }} with: node-version: 14 - - name: Build docs + - name: Build blogs if: ${{ env.CHANGED == 'OK' }} run: | cd packages/noco-blog diff --git a/.github/workflows/publish-book.yml b/.github/workflows/publish-book.yml index 0faa98a5b7..91110785b3 100644 --- a/.github/workflows/publish-book.yml +++ b/.github/workflows/publish-book.yml @@ -20,7 +20,7 @@ jobs: if: ${{ env.CHANGED == 'OK' }} with: node-version: 14 - - name: Build docs + - name: Build book if: ${{ env.CHANGED == 'OK' }} run: | cd packages/noco-book diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index c8d297b566..843db1822f 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 2 - name: Check for update run: | - echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-book) = noco-docs ]] && echo 'OK')" >> $GITHUB_ENV + echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-docs) = noco-docs ]] && echo 'OK')" >> $GITHUB_ENV - uses: actions/setup-node@v2 if: ${{ env.CHANGED == 'OK' }}