mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2026-04-05 00:56:54 +00:00
feat: upgrade commitlint to latest version
This commit is contained in:
parent
5ce82f5d81
commit
2ff45dc120
17 changed files with 5447 additions and 3587 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+/
|
||||
|
||||
module.exports.readVersion = (contents) =>
|
||||
exports.readVersion = (contents) =>
|
||||
yaml.parse(contents).runs.image.match(versionRegex)[0]
|
||||
|
||||
module.exports.writeVersion = (contents, version) => {
|
||||
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