set logging and serialize

This commit is contained in:
cupcakearmy 2022-11-01 20:51:03 +01:00
parent 461451257a
commit 9afda15154
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { setOutput } from '@actions/core'
import { info, setOutput } from '@actions/core'
// Fetch the current versions from the download page
const URL = `https://nginx.org/en/download.html`
@ -26,4 +26,7 @@ const githubActionMatrix = {
include: Object.entries(tagsMap).map(([tag, version]) => ({ tag, version })),
}
setOutput('matrix', githubActionMatrix)
const serialised = JSON.stringify(githubActionMatrix)
info(`Found ${versions.length} versions`)
info(`Exporting as github action matrix: ${serialised}`)
setOutput('matrix', serialised)