chore: add checkout step in docker workflow

- Include checkout code step using actions/checkout@v3
- Set fetch-depth to 0 to retrieve the full git history

This change ensures that the workflow has access to the complete
commit history, which may be necessary for certain operations
within the Docker build process.
This commit is contained in:
songtianlun 2025-01-22 00:51:08 +08:00
parent ec2c92e6c9
commit 0f9b4efc80

View File

@ -14,6 +14,10 @@ jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # 获取完整的 git 历史
- name: Get version - name: Get version
id: get_version id: get_version
run: | run: |