Skip to content

Commit

Permalink
test: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Oct 22, 2021
1 parent 065ebed commit 36549c8
Show file tree
Hide file tree
Showing 4 changed files with 6,754 additions and 994 deletions.
4 changes: 2 additions & 2 deletions action/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export default function ({ workspace, inputs }) {
if (fs.existsSync(configPath)) {
// parse .github/auto-merge.yml
const configYaml = fs.readFileSync(configPath, 'utf8')
const config = yaml.safeLoad(configYaml)
const config = yaml.load(configYaml)
core.info('loaded merge config: \n' + configYaml)

return config
}

// or convert the input "target" to the equivalent config
const config = [{ match: { dependency_type: 'all', update_type: `semver:${inputs.target}` } }]
core.info('using workflow\'s "target": \n' + yaml.safeDump(config))
core.info('using workflow\'s "target": \n' + yaml.dump(config))

return config
}

0 comments on commit 36549c8

Please sign in to comment.