name: 自动版本发布 on: push: branches: - main jobs: create-readme: runs-on: ubuntu-latest if: "contains(github.event.head_commit.message, 'Release')" steps: - name: Checkout uses: https://gitee.com/actions-mirror/checkout@v4 with: fetch-depth: 0 # 如果你文档需要 Git 子模块,取消注释下一行 submodules: true # - name: 替换软件源为国内软件源 # run: | # cat /etc/os-release # sudo rm -f /etc/apt/sources.list # sudo rm -f /etc/apt/sources.list.d/* # sudo tee /etc/apt/sources.list <