Skip to content

Commit

Permalink
Update check_version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoiro3 authored Jan 15, 2025
1 parent c20b2dc commit 014e617
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ jobs:
var pyproject = toml.parse(await fs.readFile('pyproject.toml', 'utf8'))
var old_pyproject = toml.parse(await fs.readFile('old_pyproject.toml', 'utf8'))
console.log(old_pyproject.tool.poetry.version, pyproject.project.version)
var msg_body = ""
if (semver.gte(old_pyproject.tool.poetry.version, pyproject.project.version)) {
if (semver.gte(old_pyproject.project.version, pyproject.project.version)) {
msg_body = (
`Update the version in [pyproject.toml](https://github.com/${{ github.event.pull_request.head.repo.full_name }}/blob/${{ github.head_ref }}/pyproject.toml) if you want this PR to generate a new release (main is ${old_pyproject.tool.poetry.version} >= ${pyproject.project.version}).`
`Update the version in [pyproject.toml](https://github.com/${{ github.event.pull_request.head.repo.full_name }}/blob/${{ github.head_ref }}/pyproject.toml) if you want this PR to generate a new release (main is ${old_pyproject.project.version} >= ${pyproject.project.version}).`
)
} else {
msg_body = "Version has been updated in pyproject.toml."
Expand Down

0 comments on commit 014e617

Please sign in to comment.