mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
new units cache strategy
This commit is contained in:
@@ -33,11 +33,12 @@ runs:
|
|||||||
- name: tar and upload persistent artifacts
|
- name: tar and upload persistent artifacts
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ hashFiles('**/package-lock.json') }} }}"
|
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ hashFiles('**/package-lock.json') }}"
|
||||||
run: |
|
run: |
|
||||||
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
|
||||||
|
echo "pushing to $REMOTE_PATH"
|
||||||
packages=( $(echo ${{ inputs.persistent-packages }}) )
|
packages=( $(echo ${{ inputs.persistent-packages }}) )
|
||||||
for i in "${packages[@]}"; do
|
for i in "${packages[@]}"; do
|
||||||
time tar czf $i.tar.gz $i
|
time tar czf $i.tar.gz $i
|
||||||
|
|||||||
Reference in New Issue
Block a user