Release v1.3.7 测试生成readme.md
All checks were successful
自动版本发布 / AutoRelease (push) Successful in 17s

This commit is contained in:
liyp 2025-04-12 14:50:52 +08:00
parent ef621a9bed
commit 8e5b915632

View File

@ -1,25 +1,37 @@
# name: 自动版本发布
name: 自动生成README.md
# on:
# push:
# branches:
# - main
# 定义触发条件,这里设置为当有新的发布创建时触发
on:
release:
types: [created]
# jobs:
# create-readme:
# runs-on: ubuntu-latest
jobs:
create-readme:
runs-on: ubuntu-latest
# if: "!contains(github.event.head_commit.message, 'AutoRelease.md')"
if: "!contains(github.event.head_commit.message, 'AutoRelease.md')"
# steps:
# - name: 删除本地仓库副本
# env:
# REPO_NAME: ${{ github.event.repository.name }}
# run: |
# if [ -d "$REPO_NAME" ]; then
# rm -rf "$REPO_NAME"
# fi
steps:
- name: 检出仓库
uses: https://gitee.com/actions-mirror/checkout@v4
with:
fetch-depth: 0
# 启用子模块支持
submodules: true
- 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 }}