mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
style: correct comment
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{- hugo.Store.Set "version" "v0.4.6-20260511091232-04fb47c6" -}}
|
||||
{{- hugo.Store.Set "version" "v0.4.6-20260512064804-a2d4b465" -}}
|
||||
{{- .Store.Set "this" dict -}}
|
||||
|
||||
{{- partial "init/detection-env.html" . -}}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
Key differences:
|
||||
- Generates twitter:site / twitter:creator from site params (.Site.Params.social.twitter)
|
||||
- The param can be a string or a map; when it's a map, reads Id/id
|
||||
- The param can be a string or a map; when it's a map, reads creator/id
|
||||
*/ -}}
|
||||
{{- $images := partial "_funcs/get-page-images" . }}
|
||||
{{- with index $images 0 }}
|
||||
|
||||
@@ -30,6 +30,12 @@ export function updateVersion(type: 'dev' | 'prod') {
|
||||
]
|
||||
const gitDiff: string = execSync('git diff --cached --name-only').toString().trim()
|
||||
|
||||
// console.log(
|
||||
// 'Node.js:',
|
||||
// execSync('which node').toString().trim(),
|
||||
// process.version,
|
||||
// )
|
||||
|
||||
if (type !== 'prod') {
|
||||
// Avoid conflicts when creating a Pull Request
|
||||
if (!['dev', 'main'].includes(branch)) {
|
||||
@@ -37,7 +43,6 @@ export function updateVersion(type: 'dev' | 'prod') {
|
||||
process.exit(0)
|
||||
}
|
||||
if (!match.some(item => gitDiff.includes(item))) {
|
||||
console.log('Node.js:', process.version)
|
||||
console.log('No need to update the FixIt version.')
|
||||
process.exit(0)
|
||||
}
|
||||
@@ -82,6 +87,5 @@ export function updateVersion(type: 'dev' | 'prod') {
|
||||
execFileSync('git', ['add', stageFile])
|
||||
}
|
||||
})
|
||||
// console.log('Node.js:', process.version)
|
||||
console.log(`Update the FixIt version from v${lastVersion} to v${latestVersion}.`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user