From 1eddfd304e181fd2190b273b7b9afc4e07d7e057 Mon Sep 17 00:00:00 2001 From: Damon To Date: Tue, 2 Apr 2024 10:57:37 +0800 Subject: [PATCH] chore(ci): add fetch-depth option to actions/checkout step --- .github/workflows/build.yml | 2 ++ .github/workflows/docker.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3662f5c..9ae51b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v5 with: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dc0e84a..84d5791 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Docker meta id: meta uses: docker/metadata-action@v5