From a6ff5d0c740fdc36c2a826d765ff9ae88e1112b1 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Tue, 2 Jul 2024 17:23:35 +0530 Subject: [PATCH 1/2] ci: let's clone repo with depth 1 let's clone repo with depth 1 which basically fetch just gets the branch tips and no prior history. Signed-off-by: subhamkrai --- .github/workflows/lint.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6205f87b..e84cb6b4 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -30,7 +30,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 - name: codespell uses: codespell-project/actions-codespell@master with: @@ -44,7 +44,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 - name: misspell uses: reviewdog/action-misspell@v1 @@ -54,7 +54,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 - uses: actions/setup-go@v5 with: go-version-file: go.mod @@ -76,7 +76,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 - uses: actions/setup-go@v5 with: go-version-file: go.mod From 0dc8c29074dc7bf9d70ae396a9c3a4d8c23b2f30 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Tue, 2 Jul 2024 17:41:28 +0530 Subject: [PATCH 2/2] ci: we don't want to run ci on push event After discussion, we decided to run ci on push event for now Signed-off-by: subhamkrai --- .github/workflows/lint.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e84cb6b4..1d77e3c6 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,13 +1,5 @@ name: lint on: - push: - paths-ignore: - - 'vendor/*' - tags: - - v* - branches: - - main - - release-* pull_request: paths-ignore: - 'vendor/*'