From 68c1b3184804c13d3655786a8c1e5048df501b7e Mon Sep 17 00:00:00 2001 From: liyp Date: Sat, 12 Apr 2025 16:51:40 +0800 Subject: [PATCH] =?UTF-8?q?Release=20v1.4.2=20=E6=B5=8B=E8=AF=95=E7=94=9F?= =?UTF-8?q?=E6=88=90readme.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/AutoGenerateREADME.yaml | 68 ------------------------ .gitea/workflows/AutoRelease.yaml | 35 +++++++++++- 2 files changed, 33 insertions(+), 70 deletions(-) delete mode 100644 .gitea/workflows/AutoGenerateREADME.yaml diff --git a/.gitea/workflows/AutoGenerateREADME.yaml b/.gitea/workflows/AutoGenerateREADME.yaml deleted file mode 100644 index 5f32f9d..0000000 --- a/.gitea/workflows/AutoGenerateREADME.yaml +++ /dev/null @@ -1,68 +0,0 @@ -name: 自动生成README.md - -on: - release: - types: [created] - branches: [main] - -jobs: - create-readme: - # 工作在ubuntu-latest系统中 - runs-on: ubuntu-latest - # 以下是steps - steps: - - name: 检出仓库 - uses: https://git.linuxacme.com/iorebuild/checkout@v4 - with: - fetch-depth: 0 - # 启用子模块支持 - submodules: false - - - name: 设置环境变量 - env: - CURRENT_USER_NAME: "iorebuild" - CURRENT_USER_EMAIL: "liyepan@linuxacme.com" - GITEA_REPO_URL: ${{ github.server_url }}/${{ github.repository }} - REPO_NAME: ${{ github.event.repository.name }} - run: | - git config user.name "$CURRENT_USER_NAME" - git config user.email "$CURRENT_USER_EMAIL" - echo "Name = $CURRENT_USER_NAME" - echo "Email = $CURRENT_USER_EMAIL" - - -# - name: 检出仓库 -# env: -# GITEA_TOKEN: ${{ secrets.AUTOGENERATE }} -# GITEA_REPO_URL: ${{ github.server_url }}/${{ github.repository }} -# CLEAN_REPO_URL: ${{ github.server_url }}/${{ github.repository }} -# run: | -# CLEAN_REPO_URL="${CLEAN_REPO_URL#https://}" -# git clone "https://${GITEA_TOKEN}@${CLEAN_REPO_URL}" . - -# - name: 生成版本号 -# id: version -# run: | -# VERSION=$(date +'%Y%m%d%H%M%S') -# echo "version=$VERSION" >> $GITHUB_OUTPUT - -# - name: 创建 Release -# run: | -# gh release create v${{ steps.version.outputs.version }} --generate-notes - -# - name: 重新提交仓库 -# env: -# GITEA_TOKEN: ${{ secrets.AUTOGENERATE }} -# GITEA_REPO_URL: ${{ github.server_url }}/${{ github.repository }} -# CLEAN_REPO_URL: ${{ github.server_url }}/${{ github.repository }} -# run: | -# CLEAN_REPO_URL="${CLEAN_REPO_URL#https://}" -# git config --local user.email "liyepan@linuxacme.com" -# git config --local user.name "iorebuild" -# git add README.md -# if git diff --staged --quiet; then -# echo "No changes to commit." -# else -# git commit -m "AutoRelease.md" -# git push "https://${GITEA_TOKEN}@${CLEAN_REPO_URL}" -# fi \ No newline at end of file diff --git a/.gitea/workflows/AutoRelease.yaml b/.gitea/workflows/AutoRelease.yaml index e7f4c2b..00dc225 100644 --- a/.gitea/workflows/AutoRelease.yaml +++ b/.gitea/workflows/AutoRelease.yaml @@ -151,6 +151,37 @@ jobs: # 以下是steps steps: - - name: 获取最终Release信息 + - name: 检出仓库 + uses: https://git.linuxacme.com/iorebuild/checkout@v4 + with: + fetch-depth: 0 + # 启用子模块支持 + submodules: false + + - name: 设置环境变量 + env: + CURRENT_USER_NAME: "iorebuild" + CURRENT_USER_EMAIL: "liyepan@linuxacme.com" + GITEA_REPO_URL: ${{ github.server_url }}/${{ github.repository }} + REPO_NAME: ${{ github.event.repository.name }} run: | - echo "hello work" + git config user.name "$CURRENT_USER_NAME" + git config user.email "$CURRENT_USER_EMAIL" + echo "Name = $CURRENT_USER_NAME" + echo "Email = $CURRENT_USER_EMAIL" + + - name: 替换软件源为国内软件源(USTC) + 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 <