epg.yml 693 B

12345678910111213141516171819202122232425262728
  1. name: EPG Fetcher
  2. on:
  3. schedule:
  4. - cron: '0 */6 * * *' # 每 6 小时运行一次
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Checkout repository
  10. uses: actions/checkout@v3
  11. - name: Fetch EPG Files
  12. run: |
  13. rm -f epg.xml
  14. wget -O epg.xml https://epg.112114.xyz/pp.xml
  15. git config --local user.name "github-actions[bot]"
  16. git config --local user.email "github-actions[bot]@users.noreply.github.com"
  17. git add epg.xml
  18. git commit -m "Update EPG files" || echo "No changes to commit"
  19. - name: Push changes
  20. run: |
  21. git push origin main
  22. env:
  23. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}