提交 db7beb2b 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

use naive hashFile

上级 a68f155e
......@@ -19,17 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v2
#
# Cache
#
- name: Create cache hash file (remove .version)
run: | # remove .version because we change it automatically in every push
cat /dev/null > hash.file
grep -v version package.json >> hash.file
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('hash.file') }}
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/packages.json') }}
restore-keys: |
${{ runner.os }}-wechaty-
......
......@@ -8,17 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
#
# Cache
#
- name: Create cache hash file (remove .version)
run: | # remove .version because we change it automatically in every push
cat /dev/null > hash.file
grep -v version package.json >> hash.file
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('hash.file') }}
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-wechaty-
......@@ -38,17 +31,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
#
# Cache
#
- name: Create cache hash file (remove .version)
run: | # remove .version because we change it automatically in every push
cat /dev/null > hash.file
grep -v version package.json >> hash.file
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('hash.file') }}
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-wechaty-
......@@ -68,17 +54,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
#
# Cache
#
- name: Create cache hash file (remove .version)
run: | # remove .version because we change it automatically in every push
cat /dev/null > hash.file
grep -v version package.json >> hash.file
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('hash.file') }}
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-wechaty-
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册