Skip to content

Commit aef79a9

Browse files
authored
feat(diff): test diff (#9)
* feat(diff): test diff Signed-off-by: Christopher Haar <[email protected]> --------- Signed-off-by: Christopher Haar <[email protected]>
1 parent 148ddc6 commit aef79a9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/diff.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Sort YAML files
7070
run: |
7171
for file in diff-pr-*.yaml; do
72-
python3 -c "import yaml; data = list(yaml.load_all(open('$file'), Loader=yaml.FullLoader)); data.sort(key=lambda x: x.get('kind', '')); yaml.dump_all(data, open('$file', 'w'), default_flow_style=False)"
72+
python3 -c "import yaml; data = list(yaml.load_all(open('$file'), Loader=yaml.FullLoader)); data.sort(key=lambda x: (x.get('kind', ''), str(x.get('metadata', {}).get('annotations', '')))); yaml.dump_all(data, open('$file', 'w'), default_flow_style=False)"
7373
done
7474
7575
# Store outputs as artifacts
@@ -153,9 +153,8 @@ jobs:
153153
- name: Sort YAML files
154154
run: |
155155
for file in diff-main-*.yaml; do
156-
python3 -c "import yaml; data = list(yaml.load_all(open('$file'), Loader=yaml.FullLoader)); data.sort(key=lambda x: x.get('kind', '')); yaml.dump_all(data, open('$file', 'w'), default_flow_style=False)"
156+
python3 -c "import yaml; data = list(yaml.load_all(open('$file'), Loader=yaml.FullLoader)); data.sort(key=lambda x: (x.get('kind', ''), str(x.get('metadata', {}).get('annotations', '')))); yaml.dump_all(data, open('$file', 'w'), default_flow_style=False)"
157157
done
158-
159158
# Store outputs as artifacts
160159
- name: Store outputs
161160
uses: actions/upload-artifact@v2

examples/xr-cluster.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
parameters:
1010
id: aws-spoke-02
1111
region: us-west-2
12-
version: "1.27"
12+
version: "1.26"
1313
nodes:
1414
count: 5
1515
instanceType: m4.2xlarge

examples/xr-network.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ metadata:
77
crossplane.io/render-function-path: examples/functions.yaml
88
spec:
99
parameters:
10-
id: platform-ref-aws-test
11-
region: eu-central-1
10+
id: platform-ref-aws
11+
region: eu-central-1

0 commit comments

Comments
 (0)