From f61bdf386aadd5c3606cbdbbfc5001045b3c6665 Mon Sep 17 00:00:00 2001 From: mujio Date: Sun, 17 Dec 2023 11:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95github=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/manual.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index dbfd36c..19033ac 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -1,14 +1,18 @@ -name: Release CI - +name: test_release +# 触发条件 on: +# 手动触发 workflow_dispatch: +# 具体任务 jobs: +# 任务名称 create-release: runs-on: ubuntu-latest outputs: RELEASE_UPLOAD_ID: ${{ steps.create-release.outputs.id }} + #任务步骤 steps: - name: Checkout code uses: actions/checkout@v2 @@ -16,8 +20,8 @@ jobs: - name: Query version number id: get_version run: | - echo "using version tag ${GITHUB_REF:10}" - echo ::set-output name=Version::"${GITHUB_REF:10}" + echo "using version tag ${GITHUB_REF}" + echo ::set-output name=Version::"${GITHUB_REF}" - name: Create Release id: create-release