Update xdp submodule to 237c4dacca3976719ab086a47c9dd93200a009d1 #9142
Workflow file for this run
This file contains hidden or 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 -qiE 'text/|image/svg[+]xml'); then | |
| echo "$f is not a text file" | |
| exit 1 | |
| fi | |
| done |