CR-1221398 Remove unknown xocl and xclmgmt from xrt-smi examine #6533
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
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright (C) 2019-2021 Xilinx, Inc. All rights reserved. | |
name: Check File Encoding | |
on: | |
pull_request: | |
jobs: | |
binary_check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install jq curl | |
- name: Binary Check | |
run: | | |
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | |
FILES=$(curl -s -X GET -G $URL | jq -r '.[] | .raw_url') | |
for f in ${FILES[*]}; do | |
echo "checking $f ..." | |
#git submodule file is coming as null here, so skip further checks for this type of files | |
if [ $f == null ]; then | |
continue; | |
fi | |
if ! $(curl -s -L -I $f | grep "content-type:" | tail -1 | grep -q "text/"); then | |
echo "$f is not a text file" | |
exit 1 | |
fi | |
done |