mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
Force no dirty build status for multiple builds
kostili and velosipedy
This commit is contained in:
@@ -42,6 +42,13 @@ class GitVersion:
|
|||||||
or ""
|
or ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
force_no_dirty = (
|
||||||
|
os.environ.get("FORCE_NO_DIRTY", None)
|
||||||
|
or ""
|
||||||
|
)
|
||||||
|
if (force_no_dirty != ""):
|
||||||
|
dirty = False
|
||||||
|
|
||||||
if (custom_fz_name != "") and (len(custom_fz_name) <= 8) and (custom_fz_name.isalnum()) and (custom_fz_name.isascii()):
|
if (custom_fz_name != "") and (len(custom_fz_name) <= 8) and (custom_fz_name.isalnum()) and (custom_fz_name.isascii()):
|
||||||
return {
|
return {
|
||||||
"GIT_COMMIT": commit,
|
"GIT_COMMIT": commit,
|
||||||
|
|||||||
@@ -106,6 +106,11 @@ vars.AddVariables(
|
|||||||
"Replaces OTP flipper name with custom string of 8 chars",
|
"Replaces OTP flipper name with custom string of 8 chars",
|
||||||
"",
|
"",
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"FORCE_NO_DIRTY",
|
||||||
|
"Force disable dirty status of the build",
|
||||||
|
"",
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"COPRO_CUBE_VERSION",
|
"COPRO_CUBE_VERSION",
|
||||||
"Cube version",
|
"Cube version",
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ variables_to_forward = [
|
|||||||
"WORKFLOW_BRANCH_OR_TAG",
|
"WORKFLOW_BRANCH_OR_TAG",
|
||||||
"DIST_SUFFIX",
|
"DIST_SUFFIX",
|
||||||
"CUSTOM_FLIPPER_NAME",
|
"CUSTOM_FLIPPER_NAME",
|
||||||
|
"FORCE_NO_DIRTY",
|
||||||
# Python & other tools
|
# Python & other tools
|
||||||
"HOME",
|
"HOME",
|
||||||
"APPDATA",
|
"APPDATA",
|
||||||
|
|||||||
Reference in New Issue
Block a user