Skip to content

Commit e7d8c17

Browse files
committed
Fix checkout issue and warning
1 parent b9439b0 commit e7d8c17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/run-ubuntu-checks.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ jobs:
140140
id: check-changes
141141
run: |
142142
git fetch origin ${{ github.base_ref }} --depth=1 || true
143+
git checkout ${{ github.base_ref }}
143144
CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
144-
echo "$CHANGED_FILES" | grep '^src_c/' || echo "::set-output name=skip::true"
145+
echo "$CHANGED_FILES" | grep '^src_c/' || echo "skip=true" >> "$GITHUB_OUTPUT"
145146
146147
- name: Install cppcheck
147148
if: steps.check-changes.outputs.skip != 'true'

0 commit comments

Comments
 (0)