From fa5cc7a4d9cfcaa2f568f5062c36b26c4c571373 Mon Sep 17 00:00:00 2001 From: VirtualHotBar <96966978+VirtualHotBar@users.noreply.github.com> Date: Sat, 4 May 2024 14:39:05 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c038b88..bb15cbd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,12 +34,11 @@ jobs: with: script: | const lastSegment = process.env.PACKAGE_VERSION.split('.').pop(); - const releaseTag = `${lastSegment}`; - + const { data } = await github.rest.repos.createRelease({ owner: context.repo.owner, repo: context.repo.repo, - tag_name: `v${process.env.PACKAGE_VERSION}`, + tag_name: `v${lastSegment}`, name: `NetMonut v${process.env.PACKAGE_VERSION}`, body: 'Take a look at the assets to download and install this app.', draft: true,