[BugFix] Check the datacache usability before calling its function in case that the uninitialized members are called in some cases. #25120
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI PROTO Checker | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
proto-checker: | |
runs-on: ubuntu-latest | |
name: PROTO FILTER | |
if: > | |
!contains(github.event.pull_request.title, '(sync #') && | |
!contains(github.event.pull_request.labels.*.name, 'sync') && | |
(!startsWith(github.head_ref, github.base_ref) || !contains(github.head_ref, '-sync-')) | |
outputs: | |
output1: ${{ steps.proto-check-info.outputs.proto }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
proto: | |
- 'gensrc/proto/**' | |
- 'gensrc/thrift/**' | |
- name: PROTO CHECK INFO | |
id: proto-check-info | |
run: | | |
echo "proto=${{ steps.changes.outputs.proto }}" >> $GITHUB_OUTPUT | |
add-proto-review-label: | |
needs: proto-checker | |
runs-on: ubuntu-latest | |
name: ADD PROTO REVIEW LABEL | |
steps: | |
- name: add label | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: needs.proto-checker.outputs.output1 == 'true' | |
with: | |
github_token: ${{ secrets.PAT }} | |
labels: PROTO-REVIEW | |
- name: remove label | |
uses: actions-ecosystem/action-remove-labels@v1 | |
if: needs.proto-checker.outputs.output1 != 'true' | |
with: | |
github_token: ${{ secrets.PAT }} | |
labels: PROTO-REVIEW |