mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
chore: check result disabling commands at action level, but enabling on job
This commit is contained in:
parent
771ad9d88a
commit
c328b35183
3 changed files with 10 additions and 3 deletions
2
.github/workflows/commitlint.yml
vendored
2
.github/workflows/commitlint.yml
vendored
|
|
@ -3,6 +3,8 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
commitlint:
|
commitlint:
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@ description: Lints Pull Request commit messages with commitlint
|
||||||
author: Wagner Santos
|
author: Wagner Santos
|
||||||
inputs:
|
inputs:
|
||||||
configFile:
|
configFile:
|
||||||
description: Commitlint config file. If the file doesn't exist, config-conventional settings will be
|
description:
|
||||||
|
Commitlint config file. If the file doesn't exist, config-conventional settings will be
|
||||||
loaded as a fallback.
|
loaded as a fallback.
|
||||||
default: ./commitlint.config.js
|
default: ./commitlint.config.js
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -11,11 +12,11 @@ inputs:
|
||||||
description: >
|
description: >
|
||||||
When set to true, we follow only the first parent commit when seeing a merge commit. More info
|
When set to true, we follow only the first parent commit when seeing a merge commit. More info
|
||||||
in git-log docs https://git-scm.com/docs/git-log#Documentation/git-log.txt---first-parent
|
in git-log docs https://git-scm.com/docs/git-log#Documentation/git-log.txt---first-parent
|
||||||
default: "true"
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
failOnWarnings:
|
failOnWarnings:
|
||||||
description: Whether you want to fail on warnings or not
|
description: Whether you want to fail on warnings or not
|
||||||
default: "false"
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
helpURL:
|
helpURL:
|
||||||
description: Link to a page explaining your commit message convention
|
description: Link to a page explaining your commit message convention
|
||||||
|
|
@ -34,6 +35,8 @@ outputs:
|
||||||
runs:
|
runs:
|
||||||
using: docker
|
using: docker
|
||||||
image: docker://wagoid/commitlint-github-action:2.1.7
|
image: docker://wagoid/commitlint-github-action:2.1.7
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'false'
|
||||||
branding:
|
branding:
|
||||||
icon: check-square
|
icon: check-square
|
||||||
color: blue
|
color: blue
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,8 @@ const showLintResults = async ([from, to]) => {
|
||||||
)
|
)
|
||||||
const formattedResults = formatErrors(lintedCommits)
|
const formattedResults = formatErrors(lintedCommits)
|
||||||
|
|
||||||
|
console.log('::set-env name=MY_ENV::MY_VALUE')
|
||||||
|
|
||||||
// disable workflow commands
|
// disable workflow commands
|
||||||
const token = uuidv4()
|
const token = uuidv4()
|
||||||
console.log(`::stop-commands::${token}`)
|
console.log(`::stop-commands::${token}`)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue