mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2026-04-04 16:56:52 +00:00
fix: rollback update of commitlint to support configs that use commonjs
This commit is contained in:
parent
e15adf3661
commit
06143b235b
17 changed files with 3576 additions and 5435 deletions
4
.github/tasks/actionYamlUpdater.js
vendored
4
.github/tasks/actionYamlUpdater.js
vendored
|
|
@ -3,10 +3,10 @@ const yaml = require('yaml')
|
|||
|
||||
const versionRegex = /\d+\.\d+\.\d+/
|
||||
|
||||
exports.readVersion = (contents) =>
|
||||
module.exports.readVersion = (contents) =>
|
||||
yaml.parse(contents).runs.image.match(versionRegex)[0]
|
||||
|
||||
exports.writeVersion = (contents, version) => {
|
||||
module.exports.writeVersion = (contents, version) => {
|
||||
const actionFile = yaml.parse(contents)
|
||||
actionFile.runs.image = actionFile.runs.image.replace(versionRegex, version)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue