Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
62569db9
Unverified
Commit
62569db9
authored
Jun 25, 2022
by
Xiaofeng Wang
Committed by
GitHub
Jun 25, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1745 from ZLMediaKit/feature/check-utf8-bom
Add workflow action to validate BOM
parents
b526dacd
cacba110
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
27 行增加
和
0 行删除
+27
-0
.github/workflows/style.yml
+27
-0
没有找到文件。
.github/workflows/style.yml
0 → 100644
查看文件 @
62569db9
name
:
style check
on
:
[
pull_request
]
jobs
:
check
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
# with all history
fetch-depth
:
0
-
name
:
Validate BOM
run
:
|
ret=0
for i in $(git diff --name-only origin/${GITHUB_BASE_REF}...${GITHUB_SHA}); do
if [ -f ${i} ]; then
case ${i} in
*.c|*.cc|*.cpp|*.h)
if file ${i} | grep -qv BOM; then
echo "Missing BOM in ${i}" && ret=1;
fi
;;
esac
fi
done
exit ${ret}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论