mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-06-11 01:07:25 +00:00
Compare commits
No commits in common. "3fa529a05ccfcb4b28b7b4977c50d192c437d477" and "c661be05dc5a36d6f69f29e752dd347de20d205a" have entirely different histories.
3fa529a05c
...
c661be05dc
4
.github/workflows/python-publish.yml
vendored
4
.github/workflows/python-publish.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4.4.0
|
||||
uses: actions/setup-python@v4.3.1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
|
@ -48,7 +48,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4.4.0
|
||||
uses: actions/setup-python@v4.3.1
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
|
|
|
@ -16,8 +16,10 @@
|
|||
|
||||
import datetime
|
||||
import os.path
|
||||
from ..cli import cargo_toml
|
||||
|
||||
import click
|
||||
import git
|
||||
|
||||
import yaclog.version
|
||||
from yaclog.changelog import Changelog
|
||||
|
@ -252,12 +254,10 @@ def release(obj: Changelog, version_name, rel_seg, pre_seg, commit, cargo):
|
|||
short_version = cur_version.name.replace(' ', '-')
|
||||
|
||||
if cargo:
|
||||
from ..cli import cargo_toml
|
||||
cargo_toml.set_version("Cargo.toml", str(short_version))
|
||||
click.echo("Updated Cargo.toml")
|
||||
|
||||
if commit:
|
||||
import git
|
||||
repo = git.Repo(os.curdir)
|
||||
|
||||
if repo.bare:
|
||||
|
|
Loading…
Reference in New Issue
Block a user