Skip to content

Commit

Permalink
fix tagname
Browse files Browse the repository at this point in the history
  • Loading branch information
visnkmr committed Aug 27, 2023
1 parent ef7a1ab commit 6e91860
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6e91860

Please sign in to comment.