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:
parent
ec2c92e6c9
commit
0f9b4efc80
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
@ -14,6 +14,10 @@ jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # 获取完整的 git 历史
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user