From 6089f0aa8ecd195ced845ea0b3191a3a19ea4e0a Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 27 Oct 2024 03:02:20 +0800 Subject: [PATCH] chore: --- .github/workflows/build-image.yml | 2 ++ .github/workflows/deploy-demo.yml | 2 ++ .github/workflows/sync-to-gitee-dev.yml | 2 +- .github/workflows/sync-to-gitee.yml | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 23e8f835c..5f088744e 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -17,6 +17,8 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: get_certd_version id: get_certd_version diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index a1b5f4e83..54244d3ca 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -21,6 +21,8 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: get_certd_version id: get_certd_version uses: actions/github-script@v6 diff --git a/.github/workflows/sync-to-gitee-dev.yml b/.github/workflows/sync-to-gitee-dev.yml index fdbfcf0b0..2cc62d7eb 100644 --- a/.github/workflows/sync-to-gitee-dev.yml +++ b/.github/workflows/sync-to-gitee-dev.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout work repo # 1. 检出当前仓库(certd-sync-work) - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set git user # 2. 给git命令设置用户名和邮箱,↙↙↙ 改成你的name和email diff --git a/.github/workflows/sync-to-gitee.yml b/.github/workflows/sync-to-gitee.yml index 9eced54bc..9707beaa8 100644 --- a/.github/workflows/sync-to-gitee.yml +++ b/.github/workflows/sync-to-gitee.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout work repo # 1. 检出当前仓库(certd-sync-work) - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set git user # 2. 给git命令设置用户名和邮箱,↙↙↙ 改成你的name和email