chore(github-action): Fetch commit history

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-16 16:20:34 +05:30
parent 58189d1cd5
commit 604caad090
3 changed files with 12 additions and 6 deletions

View File

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