check_mcv.yml 558 B

123456789101112131415161718192021
  1. name: Check Minecraft Version
  2. on:
  3. schedule:
  4. - cron: '0/20 * * * *'
  5. jobs:
  6. check_mcv:
  7. strategy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: 签出储存库
  11. uses: actions/checkout@v4
  12. - name: 配置 Python 环境
  13. uses: actions/setup-python@v4
  14. with:
  15. python-version: 3.11
  16. - name: 安装依赖
  17. run: |
  18. python -m pip install --upgrade pip
  19. pip install requests && pip install json
  20. - name: 运行更新脚本
  21. run: python Actions/check_mcv.py