You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/hash_git_files.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -171,8 +171,11 @@ def main():
171
171
print( # noqa: T201
172
172
f"Updated {devcontainer_json_file} with the new hash: {overall_checksum_str}"
173
173
)
174
-
ifnotargs.exit_zero:
175
-
sys.exit(1) # Exit with non-zero code to indicate changes were made
174
+
ifargs.exit_zero:
175
+
sys.exit(0)
176
+
else:
177
+
sys.exit(1)
178
+
176
179
else:
177
180
print(overall_checksum_str) # noqa: T201 # print this so that the value can be picked up via STDOUT when calling this in a CI pipeline or as a subprocess
Copy file name to clipboardExpand all lines: template/.github/workflows/hash_git_files.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -171,8 +171,11 @@ def main():
171
171
print( # noqa: T201
172
172
f"Updated {devcontainer_json_file} with the new hash: {overall_checksum_str}"
173
173
)
174
-
ifnotargs.exit_zero:
175
-
sys.exit(1) # Exit with non-zero code to indicate changes were made
174
+
ifargs.exit_zero:
175
+
sys.exit(0)
176
+
else:
177
+
sys.exit(1)
178
+
176
179
else:
177
180
print(overall_checksum_str) # noqa: T201 # print this so that the value can be picked up via STDOUT when calling this in a CI pipeline or as a subprocess
0 commit comments