diff --git a/.github/labeler.yml b/.github/labeler.yml index 4bea56ef6..2e49f80bb 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -18,11 +18,21 @@ java: - any-glob-to-any-file: - "**/*.java" +c: + - changed-files: + - any-glob-to-any-file: + - "**/*.c" + c++: - changed-files: - any-glob-to-any-file: - "**/*.cpp" +c#: + - changed-files: + - any-glob-to-any-file: + - "**/*.cs" + swift: - changed-files: - any-glob-to-any-file: diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index deb24d546..2e2fd61e9 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -16,7 +16,7 @@ jobs: files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }}) success=true for file in $files; do - if [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then + if [ -s "$file" ] && [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then echo "- $file" >> $GITHUB_STEP_SUMMARY success=false fi