Skip to content

Commit 23c8ec6

Browse files
test 1
1 parent 04ff468 commit 23c8ec6

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/checks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ jobs:
5454
python-version: "3.9"
5555

5656
- name: Run changelog update check
57-
run: poetry run nox -s changelog:updated
57+
run: |
58+
git diff main doc/changes
59+
echo "status: $?"
60+
poetry run nox -s changelog:updated
5861
5962
build-matrix:
6063
name: Generate Build Matrix

exasol/toolbox/nox/_documentation.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ def _build_multiversion_docs(session: nox.Session, config: Config) -> None:
4040

4141

4242
def _git_diff_changes_main() -> bool:
43+
"""return True if doc/changes is unchanged"""
4344
p = subprocess.run(
4445
["git", "diff", "main", "--quiet", Path(PROJECT_CONFIG.root, "doc/changes")],
45-
capture_output=True,
46+
#capture_output=True,
4647
)
47-
return bool(p.returncode)
48+
return p.returncode != 0
4849

4950

5051
@nox.session(name="docs:multiversion", python=False)
@@ -81,5 +82,8 @@ def clean_docs(_session: Session) -> None:
8182
def updated(_session: Session) -> None:
8283
"""Checks if the change log has been updated"""
8384
if not _git_diff_changes_main():
84-
print("Changelog have to be updated")
85+
print(
86+
"Changelog is not updated.\n"
87+
"Please describe your changes in the changelog!"
88+
)
8589
sys.exit(1)

0 commit comments

Comments
 (0)