From 2dee221e9ad6008df7e025a32b0df643140ca1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Kivim=C3=A4ki?= Date: Tue, 2 Apr 2024 09:38:06 +0300 Subject: [PATCH] ci: checkout only latest commit --- .github/workflows/deploy-docs.yml | 2 -- .github/workflows/lint.yml | 2 -- .github/workflows/publish-examples.yml | 2 -- .github/workflows/release.yml | 4 +--- .github/workflows/test.yml | 2 -- 5 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index a4a23801..b15ad48e 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -18,8 +18,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: actions/setup-go@v5 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f8d49ef1..a072f533 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,8 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: actions/setup-go@v5 with: diff --git a/.github/workflows/publish-examples.yml b/.github/workflows/publish-examples.yml index 2cfb5077..ed5515c8 100644 --- a/.github/workflows/publish-examples.yml +++ b/.github/workflows/publish-examples.yml @@ -19,8 +19,6 @@ jobs: DOCKER_CONFIG: $HOME/.docker steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: docker/login-action@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f7232bf..4da1282b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,9 +44,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 - - - run: git fetch --force --tags + fetch-tags: true - uses: docker/login-action@v3 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2114d868..5edb4a4d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,8 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: actions/setup-go@v5 with: