mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 23:19:13 +08:00
Re-fix nightly builds
This commit is contained in:
parent
572099fffa
commit
b2291064fb
4
.github/workflows/installers.yml
vendored
4
.github/workflows/installers.yml
vendored
@ -280,13 +280,13 @@ jobs:
|
|||||||
import datetime
|
import datetime
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
|
||||||
with open(".github/workflows/release-notes.md.jinja", "r") as f:
|
with open(".github/workflows/release_notes.md.jinja", "r") as f:
|
||||||
release_notes = Template(f.read())
|
release_notes = Template(f.read())
|
||||||
|
|
||||||
current_nightly_beta = "${{ needs.default-values.outputs.release_tag }}".split("nightly-")[-1]
|
current_nightly_beta = "${{ needs.default-values.outputs.release_tag }}".split("nightly-")[-1]
|
||||||
with open("release-notes.md", "w") as f:
|
with open("release-notes.md", "w") as f:
|
||||||
f.write(release_notes.render(
|
f.write(release_notes.render(
|
||||||
timestamp=${{ steps.filename.outputs.NIGHTLY_TIME }},
|
timestamp="${{ steps.filename.outputs.NIGHTLY_TIME }}",
|
||||||
branch="" if ${{ needs.default-values.outputs.release_tag == 'nightly' }} else current_nightly_beta,
|
branch="" if ${{ needs.default-values.outputs.release_tag == 'nightly' }} else current_nightly_beta,
|
||||||
branch_specific="" if os.getenv("GITHUB_REF") == "refs/heads/main" else f"?branch={current_nightly_beta}",
|
branch_specific="" if os.getenv("GITHUB_REF") == "refs/heads/main" else f"?branch={current_nightly_beta}",
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user