IPTV All 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. name: itvlist
  2. on:
  3. schedule:
  4. - cron: '0 20 * * *'
  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 opencv-python eventlet
  20. - name: Install Chrome WebDriver
  21. run: |
  22. LATEST_CHROMEDRIVER_VERSION=120.0.6099.109
  23. curl -sS -o chromedriver_linux64.zip "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6099.109/linux64/chrome-headless-shell-linux64.zip"
  24. sudo unzip chromedriver_linux64.zip -d /usr/local/bin
  25. rm chromedriver_linux64.zip
  26. - name: Set chromedriver path
  27. run: |
  28. sudo ln -sf /usr/local/bin/chrome-headless-shell-linux64/chrome-headless-shell /usr/local/bin/chromedriver
  29. sudo chmod +x /usr/local/bin/chromedriver
  30. - name: Run itv
  31. run: python ${{ github.workspace }}/itv.py
  32. - name: Run itvtest
  33. run: python ${{ github.workspace }}/itvtest.py
  34. - name: Run itvtest1
  35. run: python ${{ github.workspace }}/itvtest1.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 ""
  44. git config --local user.name ""
  45. git add .
  46. git commit *.txt *.m3u -m "Add generated file"
  47. #git pull --rebase
  48. git push -f
  49. -----------------------------------------------------------------------------------------------
  50. name: IPTV All
  51. on:
  52. push:
  53. schedule:
  54. - name: daily_task
  55. description: Run task every day at 4:00 PM
  56. cron: "0 16 * * *"
  57. branches:
  58. - main
  59. jobs:
  60. build:
  61. runs-on: ubuntu-latest
  62. steps:
  63. - name: Checkout code
  64. uses: actions/checkout@v2
  65. - name: Set up Python
  66. uses: actions/setup-python@v2
  67. with:
  68. python-version: 3.x
  69. - name: Install dependencies
  70. run: pip install selenium requests futures opencv-python eventlet
  71. - name: Install Chrome WebDriver
  72. run: |
  73. LATEST_CHROMEDRIVER_VERSION=120.0.6099.109
  74. curl -sS -o chromedriver_linux64.zip "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6099.109/linux64/chrome-headless-shell-linux64.zip"
  75. sudo unzip chromedriver_linux64.zip -d /usr/local/bin
  76. rm chromedriver_linux64.zip
  77. - name: Set chromedriver path
  78. run: |
  79. sudo ln -sf /usr/local/bin/chrome-headless-shell-linux64/chrome-headless-shell /usr/local/bin/chromedriver
  80. sudo chmod +x /usr/local/bin/chromedriver
  81. - name: Run itv
  82. run: python ${{ github.workspace }}/itv.py
  83. - name: Run itvtest
  84. run: python ${{ github.workspace }}/itvtest.py
  85. - name: Run itvtest1
  86. run: python ${{ github.workspace }}/itvtest1.py
  87. - name: Upload a Build Artifact
  88. uses: actions/upload-artifact@v4.0.0
  89. with:
  90. name: itv
  91. path: ${{ github.workspace }}/
  92. - name: 提交更改
  93. run: |
  94. git config --local user.email ""
  95. git config --local user.name ""
  96. git add .
  97. git commit *.txt *.m3u -m "Add generated file"
  98. #git pull --rebase
  99. git push -f