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 2222 - name : Check for changes related to s3
2323 id : check-changes
2424 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)
2729 if echo "$CHANGED_FILES" | grep -q -E '^core/|^services/s3/|^services-custom/s3-transfer-manager/|^http-client-spi/|^http-clients/'; then
2830 echo "Detected changes in S3, HTTP client, or core modules"
2931 echo "has_s3_related_changes=true" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments