-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tree: promote changes from testing-devel at d74306d
- Loading branch information
Showing
160 changed files
with
851 additions
and
387 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Find whitespace | ||
|
||
on: | ||
pull_request: | ||
branches: [testing-devel] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
find-whitespace: | ||
name: Find whitespace | ||
runs-on: ubuntu-latest | ||
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
# https://github.com/actions/checkout/issues/760 | ||
- name: Mark git checkout as safe | ||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Look for whitespace at the end of line | ||
run: ci/find-whitespace |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
main() { | ||
local files_with_whitespace | ||
files_with_whitespace="$(find manifests overlay.d tests -type f -exec grep -El " +$" {} \;)" | ||
|
||
if [[ -n "${files_with_whitespace}" ]]; then | ||
echo "[+] Found files with whitespace at the end of line" | ||
echo "${files_with_whitespace}" | ||
exit 1 | ||
fi | ||
|
||
echo "[+] No files with whitespace at the end of line" | ||
exit 0 | ||
} | ||
|
||
main "${@}" |
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
Oops, something went wrong.