Skip to content

Commit 7e199e5

Browse files
committed
fix(ci): sweep and inject GHA fallback SHAs inside all client library workflows
1 parent 92ab479 commit 7e199e5

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/java-bigtable-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ jobs:
137137
- run: .kokoro/build.sh
138138
env:
139139
JOB_TYPE: lint
140-
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
141-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
140+
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
141+
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
142142
clirr:
143143
needs: filter
144144
if: ${{ needs.filter.outputs.library == 'true' }}

.github/workflows/java-pubsub-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ jobs:
137137
- run: .kokoro/build.sh
138138
env:
139139
JOB_TYPE: lint
140-
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
141-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
140+
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
141+
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
142142
clirr:
143143
needs: filter
144144
if: ${{ needs.filter.outputs.library == 'true' }}

.github/workflows/java-spanner-jdbc-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ jobs:
141141
- run: .kokoro/build.sh
142142
env:
143143
JOB_TYPE: lint
144-
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
145-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
144+
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
145+
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
146146
required:
147147
needs: [ units, units-java8, windows, dependencies, javadoc, lint ]
148148
name: conditional-required-check

.github/workflows/java-storage-nio-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ jobs:
141141
- run: .kokoro/build.sh
142142
env:
143143
JOB_TYPE: lint
144-
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
145-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
144+
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
145+
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
146146
required:
147147
needs: [ units, units-java8, windows, dependencies, javadoc, lint ]
148148
name: conditional-required-check

0 commit comments

Comments
 (0)