| 1234567891011121314151617181920212223242526272829303132 |
- name: Check Minecraft Version
- on:
- schedule:
- - cron: '0/20 * * * *'
- workflow_dispatch:
-
- jobs:
- check_mcv:
- runs-on: ubuntu-latest
- steps:
- - name: 配置 Git 信息
- run: |
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
- git config --local user.name "GitHub Actions"
- - name: 签出储存库
- uses: actions/checkout@v4
- - name: 配置 Python 环境
- uses: actions/setup-python@v4
- with:
- python-version: 3.11
- - name: 安装依赖
- run: |
- python -m pip install --upgrade pip
- pip install requests
- - name: 运行更新脚本
- run: python Actions/check_mcv.py
- - name: 提交更改
- run: |
- git add *
- git diff-index --quiet HEAD || git commit -m "preloaded new version"
- - name: 推送更改
- run: git push
|