You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/layer-publish.yml
+14-18Lines changed: 14 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,23 @@ on:
4
4
workflow_call:
5
5
inputs:
6
6
artifact-name:
7
-
description: 'This should correspond to a actions/upload-artifact name earlier in the build. The file name and the name of the artifact containing it must be equal.'
7
+
description: "This should correspond to a actions/upload-artifact name earlier in the build. The file name and the name of the artifact containing it must be equal."
8
8
required: true
9
9
type: string
10
10
layer-name:
11
-
description: 'Layer name not including other parts like arch or version.'
11
+
description: "Layer name not including other parts like arch or version."
12
12
required: true
13
13
type: string
14
14
component-version:
15
-
description: 'Version of the component included in this release. Not the same as the layer/tagged version.'
15
+
description: "Version of the component included in this release. Not the same as the layer/tagged version."
16
16
required: true
17
17
type: string
18
18
architecture:
19
-
description: '(optional) amd64 or arm64'
19
+
description: "(optional) amd64 or arm64"
20
20
required: false
21
21
type: string
22
22
runtimes:
23
-
description: '(optional) a space delimited list of compatible runtimes (from https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html)'
23
+
description: "(optional) a space delimited list of compatible runtimes (from https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html)"
24
24
required: false
25
25
type: string
26
26
release-group:
@@ -29,49 +29,45 @@ on:
29
29
default: dev
30
30
type: string
31
31
aws_region:
32
-
description: 'Publish to which AWS region?'
32
+
description: "Publish to which AWS region?"
33
33
required: true
34
34
type: string
35
35
36
-
37
36
permissions:
38
37
id-token: write
39
38
contents: read
40
39
41
40
jobs:
42
41
publish_layer:
43
42
runs-on: ubuntu-latest
44
-
45
43
steps:
46
-
47
44
- name: Construct Layer Name
48
45
shell: bash
49
46
run: |
50
47
LAYER_NAME=${{ inputs.layer-name }}
51
-
48
+
52
49
if [[ -n "${{ inputs.architecture }}" ]]; then
53
50
LAYER_NAME=$LAYER_NAME-${{ inputs.architecture }}
54
51
ARCH=$(echo "${{ inputs.architecture }}" | sed -r 's/amd64/x86_64/g')
0 commit comments