This commit is contained in:
parent
b983834968
commit
f6cf869bcb
4
index.js
4
index.js
@ -19,10 +19,12 @@ const path = require("path");
|
||||
*/
|
||||
function replacePlaceholders(content) {
|
||||
const deployTime = new Date().toISOString();
|
||||
return content
|
||||
content = content
|
||||
.replace(/{{gitHash}}/g, process.env.GITHUB_SHA)
|
||||
.replace(/{{gitRef}}/g, process.env.GITHUB_REF)
|
||||
.replace(/{{deployTime}}/g, deployTime);
|
||||
core.info(content);
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user