Skip to content

Commit 1b40b9f

Browse files
authored
Merge pull request #497 from CameronRP/update-test
Update test
2 parents f10e1fb + 7c8bff3 commit 1b40b9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/aggregate-versions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getFilesWithExtension = (path, ext) => {
2828
}
2929
const findKeyInObject = (obj, key) => {
3030
for (const [k, v] of Object.entries(obj)) {
31-
if (k === key) {
31+
if (k.match(key)) {
3232
return v;
3333
} else if (typeof v === 'object') {
3434
const deeper = findKeyInObject(v, key);
@@ -104,7 +104,7 @@ const latestCommitDate = async (branch) => {
104104
const data = fs.readFileSync(path, "utf8");
105105
try {
106106
const yamlData = yaml.parse(data);
107-
const versionInfo = findKeyInObject(yamlData, "cacophony.pkg_installed_from_github");
107+
const versionInfo = findKeyInObject(yamlData, "cacophony.pkg_installed_from_*");
108108
const name = versionInfo.find(item => item.hasOwnProperty("name")).name;
109109
const version = versionInfo.find(item => item.hasOwnProperty("version")).version;
110110
versionData[branch][model][name] = version;

tc2/rpi-net-manager/init.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rpi-net-manager-pkg:
22
cacophony.pkg_installed_from_github:
33
- name: rpi-net-manager
4-
- version: "0.7.4"
4+
- version: "0.6.2"
55
- architecture: "arm64"
66

77
rpi-net-manager-service:

0 commit comments

Comments
 (0)