Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/run-ubuntu-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,19 @@ jobs:

steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0 # fetch full history

- name: Check if any src_c files changed
id: check-changes
continue-on-error: true
run: |
git fetch origin ${{ github.base_ref }} --depth=1 || true
git checkout ${{ github.base_ref }}
CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
else
CHANGED_FILES=$(git diff --name-only HEAD^1...HEAD)
fi
echo "Changed files: $CHANGED_FILES"
echo "$CHANGED_FILES" | grep '^src_c/' || echo "skip=true" >> "$GITHUB_OUTPUT"

- name: Install cppcheck
Expand Down
Loading