mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-16 22:56:28 +00:00
bug: fix time formatting
This commit is contained in:
parent
0dd3a06ef7
commit
8b470dbfd8
4
index.js
4
index.js
@ -2,7 +2,7 @@ const core = require('@actions/core')
|
|||||||
// const github = require('@actions/github')
|
// const github = require('@actions/github')
|
||||||
const Neocities = require('async-neocities')
|
const Neocities = require('async-neocities')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const prettyTime = require('pretty-time')
|
const ms = require('ms')
|
||||||
const assert = require('nanoassert')
|
const assert = require('nanoassert')
|
||||||
|
|
||||||
async function doDeploy () {
|
async function doDeploy () {
|
||||||
@ -19,7 +19,7 @@ async function doDeploy () {
|
|||||||
statsCb: Neocities.statsHandler()
|
statsCb: Neocities.statsHandler()
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(`Deployed to Neocities in ${prettyTime([0, stats.time])}:`)
|
console.log(`Deployed to Neocities in ${ms(stats.time)}:`)
|
||||||
console.log(` Uploaded ${stats.filesToUpload.length} files`)
|
console.log(` Uploaded ${stats.filesToUpload.length} files`)
|
||||||
console.log(` ${cleanup ? 'Deleted' : 'Orphaned'} ${stats.filesToDelete.length} files`)
|
console.log(` ${cleanup ? 'Deleted' : 'Orphaned'} ${stats.filesToDelete.length} files`)
|
||||||
console.log(` Skipped ${stats.filesSkipped.length} files`)
|
console.log(` Skipped ${stats.filesSkipped.length} files`)
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
"@actions/core": "1.2.2",
|
"@actions/core": "1.2.2",
|
||||||
"@actions/github": "2.1.0",
|
"@actions/github": "2.1.0",
|
||||||
"async-neocities": "1.1.5",
|
"async-neocities": "1.1.5",
|
||||||
"pretty-time": "1.1.0"
|
"ms": "^2.1.2"
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user