Skip to content

Commit

Permalink
GH Actions: add input prop to the dependencies caching custom-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Khomiak committed Jun 3, 2024
1 parent 3141f09 commit d681145
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/cached-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: "Get & cache dependencies"
description: "Get the dependencies and cache them."
inputs:
caching:
description: "Whether to cache dependencies or not."
required: false
default: "true"
runs:
using: "composite"
steps:
- name: "Cache dependencies"
if: inputs.caching == 'true'
id: cache
uses: "actions/cache@v3"
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

- name: Load & cache dependencies
uses: ./.github/actions/cached-deps
with:
caching: "false"

- name: Run linters
run: |
Expand Down

0 comments on commit d681145

Please sign in to comment.