-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (29 loc) · 865 Bytes
/
action.yml
File metadata and controls
30 lines (29 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Stack cache"
author: "freckle"
description: "Caching Action for Stack-based Haskell projects"
inputs:
stack-yaml:
description: "Path to stack.yaml"
required: true
default: "stack.yaml"
working-directory:
description: "Directory within which to run and save"
required: true
default: "."
prefix:
description: "A prefix to include on keys; useful for cache busting or versioning"
required: false
default: ""
runs:
using: "composite"
steps:
- uses: freckle/stack-action@v5
env:
STACK_YAML: ${{ inputs.stack-yaml }}
with:
working-directory: ${{ inputs.working-directory }}
cache-prefix: ${{ inputs.cache-prefix }}
# Avoid other stack-action behavior, as much as we can
stack-build-arguments: --dry-run
install-stack: false
upgrade-stack: false