1
0
mirror of synced 2025-12-22 11:26:57 -05:00

cap check-all-english-links and upload log file (#30092)

This commit is contained in:
Peter Bengtsson
2022-08-19 20:11:21 +02:00
committed by GitHub
parent 6ad4e45012
commit 420ea91b81
2 changed files with 9 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ const checker = new LinkChecker()
const root = 'http://localhost:4000'
const englishRoot = `${root}/en`
const LINKINATOR_LOG_FILE_PATH =
process.env.LINKINATOR_LOG_FILE_PATH || path.join(__dirname, '../.linkinator/full.log')
// When using the peter-evans/create-issue-from-file Action to post an
// issue comment you might get an error like this:
//
@@ -105,7 +107,7 @@ main()
async function main() {
// Clear and recreate a directory for logs.
const logFile = path.join(__dirname, '../.linkinator/full.log')
const logFile = LINKINATOR_LOG_FILE_PATH
rimraf.sync(path.dirname(logFile))
await mkdirp(path.dirname(logFile))