diff --git a/.github/workflows/publish-blog.yml b/.github/workflows/publish-blog.yml index 77673e22ba..8969d38105 100644 --- a/.github/workflows/publish-blog.yml +++ b/.github/workflows/publish-blog.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) = noco-blog ]] && echo 'OK')" >> $GITHUB_ENV + echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-book) = noco-blog ]] && echo 'OK')" >> $GITHUB_ENV - uses: actions/setup-node@v2 if: ${{ env.CHANGED == 'OK' }} diff --git a/.github/workflows/publish-book.yml b/.github/workflows/publish-book.yml index 8b2f61c391..0faa98a5b7 100644 --- a/.github/workflows/publish-book.yml +++ b/.github/workflows/publish-book.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) = noco-book ]] && echo 'OK')" >> $GITHUB_ENV + echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-book) = noco-book ]] && echo 'OK')" >> $GITHUB_ENV - uses: actions/setup-node@v2 if: ${{ env.CHANGED == 'OK' }} diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 005d504790..c8d297b566 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) = noco-docs ]] && echo 'OK')" >> $GITHUB_ENV + echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-book) = noco-docs ]] && echo 'OK')" >> $GITHUB_ENV - uses: actions/setup-node@v2 if: ${{ env.CHANGED == 'OK' }}