Skip to content

Commit f004333

Browse files
committed
fix: add debug info
1 parent a4512d9 commit f004333

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require('pretty-error').start()
22

33
import * as core from '@actions/core'
4-
import githubLabelSync, { LabelInfo } from 'github-label-sync'
4+
import githubLabelSync, { LabelInfo, Options } from 'github-label-sync'
55
import fs from 'fs'
66
import path from 'path'
77
import yaml from 'yamljs'
@@ -30,14 +30,18 @@ let usingLocalFile!: boolean
3030
)
3131

3232
startGroup('Syncing labels...')
33-
const diff = await githubLabelSync({
33+
const options: Options = {
3434
accessToken: getInput('token'),
3535
repo: process.env.GITHUB_REPOSITORY as string,
3636
labels,
3737

3838
allowAddedLabels: getInput('delete-other-labels') != 'true',
3939
dryRun: getInput('dry-run') == 'true'
40-
})
40+
}
41+
core.debug(
42+
'Running with following config:\n' + JSON.stringify(options, null, 2)
43+
)
44+
const diff = await githubLabelSync(options)
4145
log.success('Sync successful')
4246
endGroup()
4347

0 commit comments

Comments
 (0)