[Doc] Add meaning of 0 for variables (#53714) #21900
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: code-check | ||
on: | ||
pull_request: | ||
types: [labeled] | ||
jobs: | ||
sonarcloud-be: | ||
runs-on: self-hosted | ||
if: ${{ github.event.label.name == 'be-build' }} | ||
env: | ||
PR_NUMBER: ${{ github.event.number }} | ||
steps: | ||
- name: pre build | ||
run: | | ||
sudo rm -rf ../starrocks/* | ||
<<<<<<< HEAD | ||
- uses: dorny/paths-filter@v2 | ||
======= | ||
- uses: dorny/paths-filter@v3 | ||
>>>>>>> b42eff7ae3 ([Doc] Add meaning of 0 for variables (#53714)) | ||
id: changes | ||
with: | ||
filters: | | ||
be: | ||
- 'be/**' | ||
- name: set up | ||
if: steps.changes.outputs.be == 'true' | ||
run: | | ||
time scp jenkins@ci01:~/userContent/be-build-$PR_NUMBER.tar.gz . | ||
tar xzf be-build-$PR_NUMBER.tar.gz | ||
workdir=$(pwd) | ||
echo $workdir | ||
sed -i "s|\/root\/starrocks|$workdir|g" be/build-wrapper/build-wrapper-dump.json | ||
- name: Run sonar-scanner | ||
if: steps.changes.outputs.be == 'true' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: f0fb4d25c03bae90c2e994c45c29c49dc86fc169 | ||
run: | | ||
sonar-scanner -Dsonar.organization=starrocks -Dsonar.projectKey=Starrocks_be -Dsonar.cfamily.build-wrapper-output="be/build-wrapper" -Dsonar.host.url="https://sonarcloud.io" -Dsonar.sources="be/src" -Dsonar.pullrequest.key=${{ github.event.number }} -Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }} -Dsonar.projectBaseDir=. -Dsonar.pullrequest.github.repository=StarRocks/starrocks | ||
- name: post build | ||
run: | | ||
sudo rm -rf ../starrocks/* |