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' }}