Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

test_of_push_and_pull.yml 1006 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: "Tests of push & pull"
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. env:
  8. FILENAME: README.md
  9. jobs:
  10. tests:
  11. name: 'Validate README.md changes'
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout repository
  15. uses: actions/checkout@v2
  16. - name: Set up Python
  17. uses: actions/setup-python@v2
  18. with:
  19. python-version: '3.8'
  20. - name: Install dependencies
  21. run: python -m pip install -r scripts/requirements.txt
  22. - name: Validate Markdown format
  23. run: python scripts/validate/format.py ${FILENAME}
  24. - name: Validate pull request changes
  25. run: scripts/github_pull_request.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FILENAME}
  26. if: github.event_name == 'pull_request'
  27. - name: Checking if push changes are duplicated
  28. run: python scripts/validate/links.py ${FILENAME} --only_duplicate_links_checker
  29. if: github.event_name == 'push'