File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
22
- name : Check for changes related to s3
23
23
id : check-changes
24
24
run : |
25
- git fetch origin ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} --depth 1
26
- CHANGED_FILES=$(git diff remotes/origin/${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} --name-only)
25
+ BASE_REF=${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}
26
+ BASE_REF=${BASE_REF#refs/heads/}
27
+ git fetch origin "$BASE_REF" --depth 1
28
+ CHANGED_FILES=$(git diff origin/"$BASE_REF" --name-only)
27
29
if echo "$CHANGED_FILES" | grep -q -E '^core/|^services/s3/|^services-custom/s3-transfer-manager/|^http-client-spi/|^http-clients/'; then
28
30
echo "Detected changes in S3, HTTP client, or core modules"
29
31
echo "has_s3_related_changes=true" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments