mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
37 lines
956 B
YAML
37 lines
956 B
YAML
name: Commitlint
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- run: sed -i -E "s/([']docker:.+)/Dockerfile/" ./action.yml
|
|
- run: echo -n '' > .dockerignore
|
|
- uses: ./
|
|
commitlint-with-yml-file:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- run: sed -i -E "s/([']docker:.+)/Dockerfile/" ./action.yml
|
|
- run: echo -n '' > .dockerignore
|
|
- uses: ./
|
|
with:
|
|
configFile: './.commitlintrc.yml'
|
|
commitlint-pulling-from-docker-hub:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: ./
|