WIP: Build & Release

This commit is contained in:
Michał Zieliński
2025-02-12 17:59:01 +01:00
parent d43bc2d7a9
commit c6736cd01d

View File

@@ -24,6 +24,9 @@ module.exports = async ({ github, context, core, jobId }) => {
core.setFailed(`Token ${token} not found`);
return false;
}
// replace all occurrences of the ${token} with the value in file
const result = data.replace(new RegExp(`#{${token}}`, 'g'), value);
require('fs').writeFileSync(file, result, 'utf8');
}
});
}