File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ The following configuration fields moved to the `atmos.yaml` configuration file.
190
190
| `enable-infracost` | `integrations.github.gitops.infracost-enabled` |
191
191
| `sort-by` | `integrations.github.gitops.matrix.sort-by` |
192
192
| `group-by` | `integrations.github.gitops.matrix.group-by` |
193
+ | `process-functions` | `integrations.github.gitops.matrix.process-functions` |
193
194
194
195
195
196
For example, to migrate from `v1` to `v2`, you should have something similar to the following in your `atmos.yaml` :
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ usage: |
184
184
| `enable-infracost` | `integrations.github.gitops.infracost-enabled` |
185
185
| `sort-by` | `integrations.github.gitops.matrix.sort-by` |
186
186
| `group-by` | `integrations.github.gitops.matrix.group-by` |
187
+ | `process-functions` | `integrations.github.gitops.matrix.process-functions` |
187
188
188
189
189
190
For example, to migrate from `v1` to `v2`, you should have something similar to the following in your `atmos.yaml`:
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ inputs:
36
36
required : false
37
37
description : ' Number of nested matrices that should be returned as the output (from 1 to 3)'
38
38
default : " 2"
39
+ process-functions :
40
+ required : false
41
+ description : ' Whether to process atmos functions'
42
+ default : true
39
43
outputs :
40
44
selected-components :
41
45
description : Selected GitOps components
@@ -136,12 +140,14 @@ runs:
136
140
})
137
141
) | map(.) | flatten ## Reduce to flat array
138
142
run : |
139
- atmos describe stacks --format json | jq -ce "${JQUERY}" > components.json
140
-
143
+ process_function_arg=""
144
+ if [ "${{ inputs.process-functions }}" == "false" ]; then
145
+ process_function_arg="--process-functions=false"
146
+ fi
147
+ atmos describe stacks $process_function_arg --format json | jq -ce "${JQUERY}" > components.json
141
148
components=$(cat components.json)
142
149
echo "Selected components: $components"
143
- printf "%s" "components=$components" >> $GITHUB_OUTPUT
144
-
150
+ printf "%s" "components=$components" >> $GITHUB_OUTPUT
145
151
- uses : cloudposse/github-action-matrix-extended@v0
146
152
id : matrix
147
153
with :
Original file line number Diff line number Diff line change 11
11
| jq-version | The version of jq to install if install-jq is true | 1.6 | false |
12
12
| nested-matrices-count | Number of nested matrices that should be returned as the output (from 1 to 3) | 2 | false |
13
13
| select-filter | jq query that will be used to select atmos components | . | false |
14
+ | process-functions | Whether to process functions | true | false |
14
15
15
16
16
17
## Outputs
You can’t perform that action at this time.
0 commit comments