5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 08:06:54 +00:00

ci: skip release on dev dependency updates

This commit is contained in:
Frazer Smith 2022-04-03 18:14:09 +01:00
parent 61e2e5459f
commit ae79574503
No known key found for this signature in database
GPG key ID: FEDD140E5FC60CAC
2 changed files with 16 additions and 13 deletions

View file

@ -8,11 +8,11 @@ jobs:
name: Sanity Checks name: Sanity Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v2.4.1 - uses: actions/setup-node@v3
with: with:
node-version: '12.x' node-version: '12.x'
- uses: actions/cache@v2.1.6 - uses: actions/cache@v3
with: with:
path: | path: |
~/.npm ~/.npm
@ -28,17 +28,20 @@ jobs:
contents: write contents: write
needs: sanity-checks needs: sanity-checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')" if: >
github.ref == 'refs/heads/master'
&& !contains(toJSON(github.event.commits.*.message), '[skip-ci]')
&& !contains(toJSON(github.event.commits.*.message), 'chore(deps-dev)')
env: env:
DOCKER_REGISTRY_URL: registry.hub.docker.com DOCKER_REGISTRY_URL: registry.hub.docker.com
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-node@v2.4.1 - uses: actions/setup-node@v3
with: with:
node-version: '12.x' node-version: '12.x'
- uses: actions/cache@v2.1.6 - uses: actions/cache@v3
with: with:
path: | path: |
~/.npm ~/.npm

View file

@ -5,15 +5,15 @@ jobs:
commitlint: commitlint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml - run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml
- run: echo -n '' > .dockerignore - run: echo -n '' > .dockerignore
- uses: actions/setup-node@v2.4.1 - uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
- uses: actions/cache@v2.1.6 - uses: actions/cache@v3
with: with:
path: | path: |
~/.npm ~/.npm
@ -32,13 +32,13 @@ jobs:
commitlint-pulling-from-docker-hub: commitlint-pulling-from-docker-hub:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-node@v2.4.1 - uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
- uses: actions/cache@v2.1.6 - uses: actions/cache@v3
with: with:
path: | path: |
~/.npm ~/.npm