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
|
- name: download and extract artifacts from s3
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ github.run_id }}"
|
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ github.run_id }}"
|
||||||
run: |
|
run: |
|
||||||
packages=( $(echo ${{ inputs.packages }}) )
|
packages=( $(echo ${{ inputs.packages }}) )
|
||||||
for i in "${packages[@]}"; do
|
for i in "${packages[@]}"; do
|
||||||
@@ -33,10 +33,9 @@ runs:
|
|||||||
done
|
done
|
||||||
- name: download and extract persistent artifacts from s3
|
- name: download and extract persistent artifacts from s3
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ hashFiles('**/package-lock.json') }}"
|
|
||||||
run: |
|
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
|
echo remote path $REMOTE_PATH
|
||||||
if [ -n "${{ inputs.cache-key-suffix }}" ]; then
|
if [ -n "${{ inputs.cache-key-suffix }}" ]; then
|
||||||
REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}"
|
REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}"
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ runs:
|
|||||||
done
|
done
|
||||||
- name: tar and upload persistent artifacts
|
- name: tar and upload persistent artifacts
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ hashFiles('**/package-lock.json') }}"
|
|
||||||
run: |
|
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
|
if [ -n "${{ inputs.cache-key-suffix }}" ]; then
|
||||||
REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}"
|
REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user