forked from serverless/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (41 loc) · 1.26 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
name: 'Serverless GitHub Action'
description: 'Wraps the Serverless Framework to enable common Serverless commands'
author: 'Serverless, Inc. <hello@serverless.com> (https://serverless.com)'
branding:
icon: 'zap'
color: 'red'
inputs:
args:
description: 'Arguments passed to `serverless`'
required: false
default: none
aws-credentials:
description: 'Whether to use credentials stored in the local environment (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)'
required: false
default: 'false'
install-packages:
description: 'Space-separated list of packages to install prior to running `serverless {args}`'
required: false
default: none
serverless-version:
description: 'Version of the Serverless Framework to use (default: latest)'
required: false
default: latest
working-directory:
description: 'Folder where your configuration is located'
required: false
default: .
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.aws-credentials }}
- ${{ inputs.working-directory }}
- ${{ inputs.serverless-version }}
- ${{ inputs.install-packages }}
- ${{ inputs.args }}
outputs:
version:
description: 'Serverless Framework version'
result:
description: 'Serverless Framework result'