25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

10 ay önce
123456789101112131415161718192021222324252627
  1. name: style check
  2. on: [pull_request]
  3. jobs:
  4. check:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  8. with:
  9. # with all history
  10. fetch-depth: 0
  11. - name: Validate BOM
  12. run: |
  13. ret=0
  14. for i in $(git diff --name-only origin/${GITHUB_BASE_REF}...${GITHUB_SHA}); do
  15. if [ -f ${i} ]; then
  16. case ${i} in
  17. *.c|*.cc|*.cpp|*.h)
  18. if file ${i} | grep -qv BOM; then
  19. echo "Missing BOM in ${i}" && ret=1;
  20. fi
  21. ;;
  22. esac
  23. fi
  24. done
  25. exit ${ret}