Skip to content

Commit 39495bc

Browse files
committed
copier
1 parent 7d65694 commit 39495bc

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.0.37-1-g18bfaf5
2+
_commit: v0.0.37-4-g7e6abca
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
description: Copier template for creating Python libraries and executables
55
python_ci_versions:

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@
5959
"initializeCommand": "sh .devcontainer/initialize-command.sh",
6060
"onCreateCommand": "sh .devcontainer/on-create-command.sh",
6161
"postStartCommand": "sh .devcontainer/post-start-command.sh"
62-
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): d80b1dad # spellchecker:disable-line
62+
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): 5e3a0577 # spellchecker:disable-line
6363
}

.github/workflows/hash_git_files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,11 @@ def main():
171171
print( # noqa: T201
172172
f"Updated {devcontainer_json_file} with the new hash: {overall_checksum_str}"
173173
)
174-
if not args.exit_zero:
175-
sys.exit(1) # Exit with non-zero code to indicate changes were made
174+
if args.exit_zero:
175+
sys.exit(0)
176+
else:
177+
sys.exit(1)
178+
176179
else:
177180
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
178181

template/.github/workflows/hash_git_files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,11 @@ def main():
171171
print( # noqa: T201
172172
f"Updated {devcontainer_json_file} with the new hash: {overall_checksum_str}"
173173
)
174-
if not args.exit_zero:
175-
sys.exit(1) # Exit with non-zero code to indicate changes were made
174+
if args.exit_zero:
175+
sys.exit(0)
176+
else:
177+
sys.exit(1)
178+
176179
else:
177180
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
178181

0 commit comments

Comments
 (0)