Skip to content

Commit c4bbdcf

Browse files
Fix staleness test branching logic
PiperOrigin-RevId: 538812352
1 parent 901cfbe commit c4bbdcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/staleness_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# For commit-based tests, simply run the bazel query to make sure it works. This should be
3434
# identical to the step below, except for the xargs piece that runs bazel test.
3535
- name: Check that staleness tests are queryable
36-
if: ${{ github.event_name != 'schedule' && github.event_name != 'workflow_call'}}
36+
if: ${{ github.event_name == 'pull_request_target' || github.event_name == 'pull_request' || github.event_name == 'push' }}
3737
uses: protocolbuffers/protobuf-ci/bazel-docker@v1
3838
with:
3939
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:6.0.0-6361b3a6e5c97e9951d03a4de28542fc45f1adab
@@ -42,7 +42,7 @@ jobs:
4242
bash: bazel query 'attr(tags, "staleness_test", //...)'
4343

4444
- name: Run all staleness tests
45-
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_call' }}
45+
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' && github.event_name != 'push' }}
4646
uses: protocolbuffers/protobuf-ci/bazel-docker@v1
4747
with:
4848
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}

0 commit comments

Comments
 (0)