From beada81079a9d0c346b1109593c404fe4a6bb9bc Mon Sep 17 00:00:00 2001 From: Timi Date: Mon, 19 Jan 2026 13:22:04 +0800 Subject: [PATCH] test auto release tag --- .gitea/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1bac9c4..0442912 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -30,14 +30,14 @@ jobs: create-release: runs-on: act_runner_base needs: build-deploy - if: ${{ success() && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master' }} + if: ${{ success() && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master' && startsWith(github.event.pull_request.title, 'v') }} steps: - name: Create release env: GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }} GITEA_SERVER_URL: ${{ github.server_url }} GITEA_REPOSITORY: ${{ github.repository }} - RELEASE_TAG: ci-${{ github.run_id }} + RELEASE_TAG: ${{ github.event.pull_request.title }} RELEASE_TARGET: ${{ github.sha }} run: | if [ -z "$GITEA_TOKEN" ]; then