您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

24 行
532 B

  1. name: "Run tests"
  2. on:
  3. - push
  4. - pull_request
  5. env:
  6. FORMAT_FILE: README.md
  7. jobs:
  8. test:
  9. name: 'Validate README.md'
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout repository
  13. uses: actions/checkout@v2
  14. - name: Validate Markdown format
  15. run: build/validate_format.py ${FORMAT_FILE}
  16. - name: Validate pull request changes
  17. run: build/github-pull.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FORMAT_FILE}
  18. if: github.event_name == 'pull_request'