-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
37 lines (33 loc) · 974 Bytes
/
action.yml
File metadata and controls
37 lines (33 loc) · 974 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
31
32
33
34
35
36
37
name: Serverless microservices deployment
description: Deploy individual services from a Serverless Framework microservices monorepo.
author: jamesallardice
inputs:
path:
description: The path to the services directory of your microservices monorepo
required: true
default: services
sha:
description: The commit hash to diff up to
required: true
default: ${{github.sha}}
outputs:
matrix:
description: The list of service directories containing changed files
value: ${{steps.set-build-matrix.outputs.matrix}}
runs:
using: composite
steps:
- run: |
bash $GITHUB_ACTION_PATH/scripts/diff
id: diff
shell: bash
env:
BASE_SHA: ${{github.event.before}}
NEXT_SHA: ${{inputs.sha}}
- run: |
bash $GITHUB_ACTION_PATH/scripts/set-build-matrix
id: set-build-matrix
shell: bash
env:
DIFF: ${{steps.diff.outputs.diff}}
SERVICES_PATH: ${{inputs.path}}