|
|
@ -10,9 +10,11 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v2 |
|
|
|
uses: actions/checkout@v2 |
|
|
|
- name: Check for change |
|
|
|
with: |
|
|
|
|
|
|
|
fetch-depth: 2 |
|
|
|
|
|
|
|
- name: Check for update |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since | grep noco-blog) = noco-blog ]] && echo 'OK')" >> $GITHUB_ENV |
|
|
|
echo "CHANGED=$([[ $(git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna ls --since) = noco-blog ]] && echo 'OK')" >> $GITHUB_ENV |
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v2 |
|
|
|
- uses: actions/setup-node@v2 |
|
|
|
if: ${{ env.CHANGED == 'OK' }} |
|
|
|
if: ${{ env.CHANGED == 'OK' }} |
|
|
|