diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d827ff..16d9d31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,6 @@ jobs: DOCKER_REGISTRY_URL: registry.hub.docker.com steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - uses: actions/setup-node@v3 with: node-version: '16.5.0' diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index cb3b0fd..9555ac4 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -6,8 +6,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml - run: echo -n '' > .dockerignore - uses: actions/setup-node@v3 @@ -33,8 +31,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - uses: actions/setup-node@v3 with: node-version: '16.5.0' diff --git a/README.md b/README.md index 53ed711..23b118a 100644 --- a/README.md +++ b/README.md @@ -15,15 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - 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. -**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 You can supply these inputs to the `wagoid/commitlint-github-action@v5` step. @@ -139,8 +135,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - uses: actions/setup-node@v2 with: node-version: '14'