feat(action): add skipped tags output and tracking (#33)

This commit is contained in:
2025-10-29 13:06:38 +00:00
committed by GitHub
parent 92bdad7a4a
commit 6723e4d4ac
6 changed files with 173 additions and 46 deletions

View File

@@ -16,6 +16,7 @@ export async function run(): Promise<void> {
const created: string[] = []
const updated: string[] = []
const skipped: string[] = []
// Execute all planned operations.
for (const operation of operations) {
@@ -25,11 +26,14 @@ export async function run(): Promise<void> {
created.push(operation.name)
} else if (operation.operation === 'update') {
updated.push(operation.name)
} else if (operation.operation === 'skip') {
skipped.push(operation.name)
}
}
core.setOutput('created', created)
core.setOutput('updated', updated)
core.setOutput('skipped', skipped)
core.setOutput('tags', created.concat(updated))
} catch (error) {
const message = error instanceof Error ? error.message : String(error)