Skip to content

Commit d852712

Browse files
committed
fix: resolve ci.yaml failures on push events
1 parent dea24db commit d852712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ jobs:
203203
- run: .kokoro/build.sh
204204
env:
205205
JOB_TYPE: lint
206-
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
207-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
206+
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
207+
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
208208
enforcer:
209209
runs-on: ubuntu-latest
210210
steps:

0 commit comments

Comments
 (0)