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

docs: remove fetch-depth from instructions since it's not needed anymore

This commit is contained in:
Wagner Santos 2023-07-22 09:02:38 -03:00
parent a31f4b5793
commit a8f11416e0
3 changed files with 0 additions and 12 deletions

View file

@ -36,8 +36,6 @@ jobs:
DOCKER_REGISTRY_URL: registry.hub.docker.com DOCKER_REGISTRY_URL: registry.hub.docker.com
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '16.5.0' node-version: '16.5.0'

View file

@ -6,8 +6,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
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@v3 - uses: actions/setup-node@v3
@ -33,8 +31,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '16.5.0' node-version: '16.5.0'

View file

@ -15,15 +15,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5 - uses: wagoid/commitlint-github-action@v5
``` ```
Alternatively, you can run on other event types such as `on: [push]`. In that case the action will lint the push event's commit(s) instead of linting commits from a pull request. You can also combine `push` and `pull_request` together in the same workflow. Alternatively, you can run on other event types such as `on: [push]`. In that case the action will lint the push event's commit(s) instead of linting commits from a pull request. You can also combine `push` and `pull_request` together in the same workflow.
**Note**: It's necessary that you specify the `fetch-depth` argument to `actions/checkout@v2` step. By default they fetch only latest commit of the branch, but we need more commits since we validate a range of commit messages.
## Inputs ## Inputs
You can supply these inputs to the `wagoid/commitlint-github-action@v5` step. You can supply these inputs to the `wagoid/commitlint-github-action@v5` step.
@ -139,8 +135,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '14' node-version: '14'