Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
duliyouxijuzi committed Nov 19, 2023
1 parent f714124 commit 269f2f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gitbook-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

- name: Cache Node.js modules
uses: actions/cache@v3
id: cache-npm
with:
path: ./node_modules
key: Linux-node_modules-${{ hashFiles('./package-lock.json') }}
Expand All @@ -35,7 +36,7 @@ jobs:
with:
node-version: '10.24.1'

- name: set COMMON_OLD_CACHE_KEY
- name: Set COMMON_OLD_CACHE_KEY
run: echo "COMMON_OLD_CACHE_KEY=Linux-node_modules-${{ hashFiles('./package-lock.json') }}" >> $GITHUB_ENV

- name: Install gitbook-cli
Expand All @@ -60,6 +61,9 @@ jobs:
else
CHANGE_PACKAGE_VALUE=true
fi
if [[ ${{ steps.cache-npm.outputs.cache-hit != 'true' }} ]]; then
CHANGE_PACKAGE_VALUE=true
fi
echo "CHANGE_PACKAGE=${CHANGE_PACKAGE_VALUE}" >> $GITHUB_ENV
- if: ${{ env.CHANGE_PACKAGE == true }}
Expand Down

0 comments on commit 269f2f8

Please sign in to comment.