Skip to content

Commit a4fff24

Browse files
committed
use github.sha to get commit
1 parent 1467c25 commit a4fff24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci-testing-pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Check openapi specs are up to date
4040
run: |
4141
if ! ./ci/github/helpers/openapi-specs-diff.bash diff \
42-
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.sha }} \
42+
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.sha }} \
4343
.; then \
4444
echo "::error:: OAS are not up to date. Run 'make openapi-specs' to update them"; exit 1; \
4545
fi
@@ -59,7 +59,7 @@ jobs:
5959
- name: check api-server backwards compatibility
6060
run: |
6161
./scripts/openapi-diff.bash breaking --fail-on ERR\
62-
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/${{ github.event.pull_request.head.sha }}/services/api-server/openapi.json \
62+
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/${{ github.sha }}/services/api-server/openapi.json \
6363
/specs/services/api-server/openapi.json
6464
6565
all-oas-breaking:
@@ -78,5 +78,5 @@ jobs:
7878
- name: Check openapi-specs backwards compatibility
7979
run: |
8080
./ci/github/helpers/openapi-specs-diff.bash breaking \
81-
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/${{ github.event.pull_request.head.sha }} \
81+
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/${{ github.sha }} \
8282
.

0 commit comments

Comments
 (0)