main.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: itvlist
  2. on:
  3. schedule:
  4. - cron: '0 21 * * *'
  5. push:
  6. branches:
  7. - main
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout code
  13. uses: actions/checkout@v2
  14. - name: Set up Python
  15. uses: actions/setup-python@v2
  16. with:
  17. python-version: 3.x
  18. - name: Install dependencies
  19. run: pip install selenium requests futures eventlet
  20. - name: Run itv_all
  21. run: python ${{ github.workspace }}/itv_all.py
  22. #- name: Run hnitv
  23. #run: python ${{ github.workspace }}/hnitv.py
  24. #- name: Run itv
  25. #run: python ${{ github.workspace }}/itv.py
  26. #- name: Run itvtest
  27. #run: python ${{ github.workspace }}/itvtest.py
  28. #- name: Run cctv
  29. #run: python ${{ github.workspace }}/cctv.py
  30. #- name: Run weishi
  31. #run: python ${{ github.workspace }}/weishi.py
  32. #- name: Run hn
  33. #run: python ${{ github.workspace }}/hn.py
  34. #- name: Run qita
  35. #run: python ${{ github.workspace }}/qita.py
  36. #- name: Upload a Build Artifact
  37. #uses: actions/upload-artifact@v4.0.0
  38. #with:
  39. #name: itv
  40. #path: ${{ github.workspace }}/
  41. - name: 提交更改
  42. run: |
  43. git config --local user.email "mrxuanyu@gmail.com"
  44. git config --local user.name "chaxy123"
  45. git add .
  46. git commit *.txt -m "Add generated file"
  47. git commit *.m3u -m "Add generated file"
  48. #git pull --rebase
  49. git push -f