[b4.4] Fix ldmsd_controller
completion without ldmsd connection
#1375
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: Space Check | |
on: | |
pull_request: | |
branches: | |
- 'OVIS-4' | |
- main | |
- 'b[0-9]+.[0-9]+' | |
jobs: | |
space_check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
set -e | |
test -n "${GITHUB_BASE_REF}" | |
git fetch origin "${GITHUB_BASE_REF}:refs/remotes/origin/${GITHUB_BASE_REF}" | |
echo "=== Creating /tmp/diff ===" | |
git diff "origin/${GITHUB_BASE_REF}" > /tmp/diff | |
echo "=== Checking trailing spaces in /tmp/diff ===" | |
if grep '^+.*[[:space:]]$' /tmp/diff ; then | |
echo "---------------------------------------" | |
echo "Pull request contains trailing spaces" | |
exit -1 | |
else | |
echo "---------------------------------------" | |
echo "OK." | |
exit 0 | |
fi |