mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 12:32:37 +00:00
fix(changelogs): fix ref target in changelogs (#1780)
This commit is contained in:
parent
befbfee2db
commit
b739d459ea
10
.github/workflows/changelog.py
vendored
10
.github/workflows/changelog.py
vendored
@ -383,15 +383,19 @@ def main():
|
|||||||
parser.add_argument("--handwritten", help="Handwritten changelog")
|
parser.add_argument("--handwritten", help="Handwritten changelog")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
manifests = get_manifests(args.target)
|
# Remove refs/tags, refs/heads, refs/remotes e.g.
|
||||||
prev, curr = get_tags(args.target, manifests)
|
# Tags cannot include / anyway.
|
||||||
|
target = args.target.split('/')[-1]
|
||||||
|
|
||||||
|
manifests = get_manifests(target)
|
||||||
|
prev, curr = get_tags(target, manifests)
|
||||||
print(f"Previous tag: {prev}")
|
print(f"Previous tag: {prev}")
|
||||||
print(f" Current tag: {curr}")
|
print(f" Current tag: {curr}")
|
||||||
|
|
||||||
prev_manifests = get_manifests(prev)
|
prev_manifests = get_manifests(prev)
|
||||||
title, changelog = generate_changelog(
|
title, changelog = generate_changelog(
|
||||||
args.handwritten,
|
args.handwritten,
|
||||||
args.target,
|
target,
|
||||||
args.pretty,
|
args.pretty,
|
||||||
args.workdir,
|
args.workdir,
|
||||||
prev_manifests,
|
prev_manifests,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user