woocommerce/.github/actions/cache-deps/action.yml

23 lines
646 B
YAML
Raw Normal View History

2022-05-17 16:26:08 +00:00
name: Cache Dependencies (Composite)
description: Creates and restores caches for dependencies.
inputs:
workflow_cache:
required: true
description: The workflow cache key.
workflow_name:
required: true
description: The name of the workflow.
runs:
using: "composite"
steps:
- name: Dependency caching
uses: actions/cache@v3
id: cache-deps
with:
path: |
~/.pnpm-store
~/.local/share/pnpm/store
~/.cache/composer/files
key: ${{ runner.os }}-${{ inputs.workflow_name }}-${{ inputs.workflow_cache }}-${{ hashFiles('**/composer.lock', '**/pnpm-lock.yaml') }}