forked from leroy-merlin-br/action-s3-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
46 lines (46 loc) · 1.45 KB
/
action.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "S3 Cache for GitHub Actions"
description: "GitHub Action that allows you to cache build artifacts to S3"
branding:
icon: "archive"
color: "green"
inputs:
action:
description: "Action to perform. Options are: put, get, delete"
required: true
aws-access-key-id:
description: "AWS access key id to access your bucket"
required: true
aws-secret-access-key:
description: "AWS secret access key to access your bucket"
required: true
aws-region:
description: "AWS region where your bucket is located"
required: true
bucket:
description: "AWS s3 bucket to store the artifacts"
required: true
key:
description: "An explicit key for restoring and saving the cache"
required: true
artifacts:
description: "A list of files, directories and glob patterns to cache and restore"
required: false
s3-class:
description: "Specifies the desired Storage Class for the object."
required: false
default: STANDARD
runs:
using: "composite"
steps:
- run: $GITHUB_ACTION_PATH/entrypoint.sh
shell: bash
env:
ACTION: ${{ inputs.action }}
AWS_ACCESS_KEY_ID: ${{ inputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
AWS_REGION: ${{ inputs.aws-region }}
BUCKET: ${{ inputs.bucket }}
S3_CLASS: ${{ inputs.s3-class }}
KEY: ${{ inputs.key }}
ARTIFACTS: ${{ inputs.artifacts }}
OS: ${{ runner.os }}