Skip to content

Commit 1e4a90e

Browse files
committed
Fix failures in s3-regression-tests in merge queue
1 parent fcf7d4d commit 1e4a90e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/s3-regression-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
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

0 commit comments

Comments
 (0)