Skip to content

Commit 70c71dd

Browse files
committed
validate-apis: Fix cached branch name
We need the target branch, not the source branch.
1 parent b182745 commit 70c71dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/validate-apis.yml

Lines changed: 2 additions & 2 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

0 commit comments

Comments
 (0)