mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
new hash function
This commit is contained in:
@@ -23,7 +23,7 @@ runs:
|
||||
- name: download and extract artifacts from s3
|
||||
shell: bash
|
||||
env:
|
||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ github.run_id }}"
|
||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ github.run_id }}"
|
||||
run: |
|
||||
packages=( $(echo ${{ inputs.packages }}) )
|
||||
for i in "${packages[@]}"; do
|
||||
@@ -33,10 +33,9 @@ runs:
|
||||
done
|
||||
- name: download and extract persistent artifacts from s3
|
||||
shell: bash
|
||||
env:
|
||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ hashFiles('**/package-lock.json') }}"
|
||||
run: |
|
||||
echo using hashfile '${{ hashFiles("**/package-lock.json") }}'
|
||||
HASH=$(md5sum package-lock.json | cut -f 1 -d " ")
|
||||
REMOTE_PATH="alfresco-ng2-components/build-cache/${HASH}"
|
||||
echo remote path $REMOTE_PATH
|
||||
if [ -n "${{ inputs.cache-key-suffix }}" ]; then
|
||||
REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}"
|
||||
|
||||
@@ -32,9 +32,9 @@ runs:
|
||||
done
|
||||
- name: tar and upload persistent artifacts
|
||||
shell: bash
|
||||
env:
|
||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ hashFiles('**/package-lock.json') }}"
|
||||
run: |
|
||||
HASH=$(md5sum package-lock.json | cut -f 1 -d " ")
|
||||
REMOTE_PATH="alfresco-ng2-components/build-cache/${HASH}"
|
||||
if [ -n "${{ inputs.cache-key-suffix }}" ]; then
|
||||
REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user