Browse Source

chore(github-action): action condition correction

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/153/head
Pranav C 3 years ago
parent
commit
1b9af30c26
  1. 2
      .github/workflows/publish-blog.yml
  2. 2
      .github/workflows/publish-book.yml
  3. 2
      .github/workflows/publish-docs.yml

2
.github/workflows/publish-blog.yml

@ -14,7 +14,7 @@ jobs:
fetch-depth: 2 fetch-depth: 2
- name: Check for update - name: Check for update
run: | 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 - uses: actions/setup-node@v2
if: ${{ env.CHANGED == 'OK' }} if: ${{ env.CHANGED == 'OK' }}

2
.github/workflows/publish-book.yml

@ -14,7 +14,7 @@ jobs:
fetch-depth: 2 fetch-depth: 2
- name: Check for update - name: Check for update
run: | 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 - uses: actions/setup-node@v2
if: ${{ env.CHANGED == 'OK' }} if: ${{ env.CHANGED == 'OK' }}

2
.github/workflows/publish-docs.yml

@ -14,7 +14,7 @@ jobs:
fetch-depth: 2 fetch-depth: 2
- name: Check for update - name: Check for update
run: | 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 - uses: actions/setup-node@v2
if: ${{ env.CHANGED == 'OK' }} if: ${{ env.CHANGED == 'OK' }}

Loading…
Cancel
Save