mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 20:13:21 +03:00
31 lines
852 B
YAML
31 lines
852 B
YAML
name: Restore Tasks Cache CI
|
|
inputs:
|
|
tag:
|
|
required: false
|
|
types: [string]
|
|
tasks:
|
|
required: false
|
|
types: [string]
|
|
default: all
|
|
suffix:
|
|
required: false
|
|
types: [string]
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Compute tasks key
|
|
id: tasks-key
|
|
shell: bash
|
|
run: echo "key=${{ inputs.tasks }}" | tr , - >> $GITHUB_OUTPUT
|
|
- name: Restore tasks cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
.cache
|
|
.nx/cache
|
|
node_modules/.cache
|
|
packages/*/node_modules/.cache
|
|
key: tasks-cache-${{ github.ref_name }}-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}-${{ github.sha }}
|
|
restore-keys: |
|
|
tasks-cache-${{ github.ref_name }}-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}- |