WIP: Build & Release
This commit is contained in:
@@ -24,6 +24,9 @@ module.exports = async ({ github, context, core, jobId }) => {
|
|||||||
core.setFailed(`Token ${token} not found`);
|
core.setFailed(`Token ${token} not found`);
|
||||||
return false;
|
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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user