mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-09-01 14:58:58 +00:00
Compare commits
2 Commits
c661be05dc
...
3fa529a05c
Author | SHA1 | Date | |
---|---|---|---|
|
3fa529a05c | ||
396960fae0 |
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.3.1
|
||||
uses: actions/setup-python@v4.4.0
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
@ -48,7 +48,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4.3.1
|
||||
uses: actions/setup-python@v4.4.0
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
|
@ -16,10 +16,8 @@
|
||||
|
||||
import datetime
|
||||
import os.path
|
||||
from ..cli import cargo_toml
|
||||
|
||||
import click
|
||||
import git
|
||||
|
||||
import yaclog.version
|
||||
from yaclog.changelog import Changelog
|
||||
@ -254,10 +252,12 @@ 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