lint.yml 641 B

12345678910111213141516171819202122232425262728
  1. name: Lint
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: 0 10 * * 0
  6. jobs:
  7. lint:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - uses: actions/setup-node@v1
  12. with:
  13. node-version: '14.x'
  14. - name: Run lint script
  15. run: |
  16. npm ci
  17. npm run lint
  18. - name: Create Pull Request
  19. uses: peter-evans/create-pull-request@v3
  20. with:
  21. commit-message: Automated lint
  22. title: Automated lint
  23. body: |
  24. - Changes from lint script
  25. Auto-generated by Github Actions
  26. branch: automated-lint