更新 .gitea/workflows/build.yaml
This commit is contained in:
parent
a9af6c2876
commit
f1abb1094c
|
@ -12,7 +12,7 @@ jobs:
|
||||||
uses: https://git.hmtsai.cn/actions/checkout@v4
|
uses: https://git.hmtsai.cn/actions/checkout@v4
|
||||||
- name: Get Hash
|
- name: Get Hash
|
||||||
id: src_hash
|
id: src_hash
|
||||||
run: echo "::set-output name=src_hash::$(if [[ $(find src -type f -exec sha256sum {} \; | sha256sum | cut -d ' ' -f 1) = $(cat hash.txt) ]] then echo run; else echo next; fi)"
|
run: echo "::set-output name=src_hash::$(if [[ $(find src -type f -exec sha256sum {} \; | sha256sum | cut -d ' ' -f 1) = $(cat hash.txt) ]]; then echo run; else echo next; fi)"
|
||||||
- name: Cache Node
|
- name: Cache Node
|
||||||
if: ${{ steps.src_hash.outputs.src_hash != 'run' }}
|
if: ${{ steps.src_hash.outputs.src_hash != 'run' }}
|
||||||
uses: https://git.hmtsai.cn/actions/cache@v4
|
uses: https://git.hmtsai.cn/actions/cache@v4
|
||||||
|
@ -88,7 +88,7 @@ jobs:
|
||||||
uses: https://git.hmtsai.cn/actions/checkout@v4
|
uses: https://git.hmtsai.cn/actions/checkout@v4
|
||||||
- name: Get Hash
|
- name: Get Hash
|
||||||
id: src_hash
|
id: src_hash
|
||||||
run: echo "::set-output name=npmhash::$(if [[ $(find src -type f -exec sha256sum {} \; | sha256sum | cut -d ' ' -f 1) = $(cat hash.txt) ]] then echo run; fi)"
|
run: echo "::set-output name=npmhash::$(if [[ $(find src -type f -exec sha256sum {} \; | sha256sum | cut -d ' ' -f 1) = $(cat hash.txt) ]]; then echo run; fi)"
|
||||||
- name: Prepare Source
|
- name: Prepare Source
|
||||||
run: |
|
run: |
|
||||||
echo "--- write source ---"
|
echo "--- write source ---"
|
||||||
|
|
Reference in New Issue