From 71f6f5d8c7f8579cdbbbbc7c050a9cb5f29a74be Mon Sep 17 00:00:00 2001 From: MarleneKress79789 Date: Tue, 19 Dec 2023 14:13:41 +0100 Subject: [PATCH] [CodeBuild] fix script call --- .github/workflows/check_version.yaml | 2 +- scripts/check_release_version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_version.yaml b/.github/workflows/check_version.yaml index 87943032..90d1e90b 100644 --- a/.github/workflows/check_version.yaml +++ b/.github/workflows/check_version.yaml @@ -11,4 +11,4 @@ jobs: fetch-depth: 0 - uses: ./.github/actions/prepare_poetry_env - name: Check Release - run: ./scripts/check_release_version.sh \ No newline at end of file + run: poetry run python3 -u "./scripts/check_release.py" \ No newline at end of file diff --git a/scripts/check_release_version.py b/scripts/check_release_version.py index 3bde41a6..5a2a67f5 100644 --- a/scripts/check_release_version.py +++ b/scripts/check_release_version.py @@ -23,7 +23,7 @@ def get_poetry_version(): def get_change_log_version(): # Path overloads __truediv__ - with open(Path(__file__).parent / ".." / ".." / "doc" / "changes" / "changelog.md") as changelog: + with open(Path(__file__).parent / ".." / "doc" / "changes" / "changelog.md") as changelog: changelog_str = changelog.read() # Search for the FIRST pattern like: "* [0.5.0](changes_0.5.0.md)" in the changelog file. # Note that we encapsulate the [(0.5.0)] with parenthesis, which tells re to return the matching string as group