Skip to content

Commit

Permalink
chore: auto update version fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tahaluh committed Mar 28, 2024
1 parent 35f8f11 commit a07fbc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ jobs:
repo: context.repo.repo
});
const latestRelease = response.data.tag_name;
const versionParts = latestRelease.split('.');
const newVersion = `${parseInt(versionParts[0])}.${parseInt(versionParts[1]) + 1}.${parseInt(versionParts[2])}`;
const versionParts = latestRelease.replace(/^v/, '').split('.');
const newVersion = `${parseInt(versionParts[0])}.${parseInt(versionParts[1])}.${parseInt(versionParts[2]) + 1}`;
console.log(`::set-output name=new_version::${newVersion}`);

Expand Down

0 comments on commit a07fbc2

Please sign in to comment.