From 6e9186003d24be1b8364bedff7024ef23cff5f33 Mon Sep 17 00:00:00 2001 From: 12core1 <12533753+visnkmr@users.noreply.github.com> Date: Sun, 27 Aug 2023 19:11:01 +0530 Subject: [PATCH] fix tagname --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 104869e..2489d32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,11 +26,13 @@ jobs: uses: actions/github-script@v6 with: script: | - const currentDate = new Date().toISOString(); + let tagDate = isoDate.substring(0, 10); // "2023-08-27" + let tagTime = isoDate.substring(11, 19).replace(/:/g, ''); // "123456" + let githubTag = `${tagDate}-${tagTime}`; const { data } = await github.rest.repos.createRelease({ owner: context.repo.owner, repo: context.repo.repo, - tag_name: currentDate, + tag_name: githubTag, name: `WFMOSSFrontend for PC v${process.env.PACKAGE_VERSION}`, body: 'Checkout commit for detailed changelog on what has changed.', draft: true,