Skip to content

Commit b6806f1

Browse files
committed
Port changes applied to main
1 parent b06f951 commit b6806f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
uses: actions/cache@v4
4747
with:
4848
path: ./clients-flight-recorder/recordings/types-validation/types-validation.json
49-
key: types-validation-json-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.head_ref, github.event.pull_request.base.sha) || format('{0}-{1}', github.ref_name, github.sha) }}
49+
key: types-validation-json-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.base_ref, github.event.pull_request.base.sha) || format('{0}-{1}', github.ref_name, github.sha) }}
5050
restore-keys: |
51-
types-validation-json-${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}-
51+
types-validation-json-${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}-
5252
5353
- name: Install deps 1/2
5454
working-directory: ./clients-flight-recorder
@@ -71,11 +71,12 @@ jobs:
7171
- name: Download artifacts
7272
working-directory: ./clients-flight-recorder
7373
run: |
74-
if [[ -n "${GITHUB_BASE_REF+x}" ]]; then
74+
if [[ -n "${GITHUB_BASE_REF:-}" ]]; then
7575
branch=$GITHUB_BASE_REF
7676
else
7777
branch=$GITHUB_REF_NAME
7878
fi
79+
echo "Using branch: $branch"
7980
node scripts/upload-recording/download.js --branch $branch --git
8081
node scripts/clone-elasticsearch/index.js --branch $branch
8182

0 commit comments

Comments
 (0)