Skip to content

Commit

Permalink
Test error outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora committed Dec 6, 2023
1 parent 2c4e9b9 commit 2707082
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/references/actions/docker-push/Variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
| ----------------- | ------ | -------- | ------------------------------------------------------ | -------------------------------------------- |
| docker-registry | string | false | | Host where the image should be pushed to. |
| docker-registry4 | string | false | | Host where the image should be pushed to. |
| image-name | string | false | `"${{ github.event.repository.name }}"` | Name of Docker image. |
| image-namespace | string | false | | Namespace of Docker image. |
| image-tag | string | false | `"pipeline-${{ github.run_id }}-git-${GITHUB_SHA::8}"` | Tag of Docker image. |
Expand Down
9 changes: 6 additions & 3 deletions generate-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,12 @@ def run():
if not need_updates:
print_colored("√ Documentation up to date", Colors.GREEN)
else:
print_colored(
"\nError: The documentation is not up to date. Re running pre-commit may help.", Colors.RED)
os._exit(1)
# print_colored(
# "\nError: The documentation is not up to date. Re running pre-commit may help.", Colors.RED)
raise RuntimeError(
"\nError: The documentation is not up to date. Re running pre-commit may help.")

# os._exit(1)

# remove tmp dir
safe_remove_directory("tmps")
Expand Down

0 comments on commit 2707082

Please sign in to comment.