Skip to content

Commit

Permalink
ci: add checkout step in define-matrix job
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Jan 8, 2025
1 parent fc88607 commit 7a91a10
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pull-cd-builder-images-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
changed_cpp_builder_folders: ${{ steps.changed.outputs.cpp_builder_folders }}

steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Parse changed scopes
id: changed
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pull-cd-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
changed_cpp_builder_folders: ${{ steps.changed.outputs.cpp_builder_folders }}

steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Parse changed scopes
id: changed
run: |
Expand All @@ -38,6 +42,7 @@ jobs:
echo "Head SHA: $HEAD_SHA"
# Get list of changed files with status
git fetch origin $BASE_SHA --depth=0
git diff --name-status $BASE_SHA $HEAD_SHA > changed_files.txt
echo "Changed Files with Status:"
cat changed_files.txt
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-cd-builder-images-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
changed_cpp_builder_folders: ${{ steps.changed.outputs.cpp_builder_folders }}

steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Parse changed scopes
id: changed
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-cd-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
changed_cpp_builder_folders: ${{ steps.changed.outputs.cpp_builder_folders }}

steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Parse changed scopes
id: changed
run: |
Expand Down

0 comments on commit 7a91a10

Please sign in to comment.