14 lines
502 B
Diff
14 lines
502 B
Diff
--- a/Gruntfile.js
|
|
+++ b/Gruntfile.js
|
|
@@ -203,9 +203,7 @@ module.exports = grunt => {
|
|
});
|
|
|
|
grunt.registerTask('getExpireTime', () => {
|
|
- grunt.task.requires('gitinfo');
|
|
- const gitinfo = grunt.config.get('gitinfo');
|
|
- const committed = gitinfo.local.branch.current.lastCommitTime;
|
|
+ const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
|
|
const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
|
|
grunt.file.write(
|
|
'config/local-production.json',
|