cache #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cache | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: name of the branch to filter, example refs/pull/1136/merge | |
type: string | |
filter: | |
description: filter of keys to search for, example node-cache-Linux- | |
type: string | |
rebuild: | |
description: when enabled, cache will be generated in the branch which action was called from | |
type: boolean | |
default: false | |
workflow_call: | |
inputs: | |
branch: | |
description: name of the branch to filter, example refs/pull/1136/merge | |
type: string | |
filter: | |
description: filter of keys to search for, example node-cache-Linux- | |
type: string | |
rebuild: | |
description: when enabled, cache will be generated in the branch which action was called from | |
type: boolean | |
default: false | |
jobs: | |
maintain: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node and install deps | |
id: install | |
if: ${{ inputs.rebuild == 'true' || inputs.rebuild == true }} | |
uses: ./.github/workflows/actions/node-setup | |
- name: Clear cache | |
uses: ./.github/workflows/actions/clear-cache | |
continue-on-error: true | |
with: | |
branch: ${{ inputs.branch }} | |
filter: ${{ inputs.filter }} | |
- name: Generate cache for source code | |
if: ${{ steps.install.outcome == 'success' }} | |
uses: ./.github/workflows/actions/build-packages |