diff --git a/.github/scripts/calculate_next_tag.py b/.github/scripts/calculate_next_tag.py index 6c8d613..3b30a06 100644 --- a/.github/scripts/calculate_next_tag.py +++ b/.github/scripts/calculate_next_tag.py @@ -9,7 +9,7 @@ def get_latest_tag(): return valid_tags[0] if valid_tags else None def calculate_next_tag(): - now = datetime.utcnow() + now = datetime.datetime.now(datetime.UTC) year, week, _ = now.isocalendar() week_str = f"{week:02d}" # Ensure week is two digits diff --git a/.github/scripts/generate_release_notes.py b/.github/scripts/generate_release_notes.py index 04db800..8110df5 100644 --- a/.github/scripts/generate_release_notes.py +++ b/.github/scripts/generate_release_notes.py @@ -22,7 +22,7 @@ def get_latest_tag(): return valid_tags[0] if valid_tags else None def calculate_next_tag(): - now = datetime.utcnow() + now = datetime.datetime.now(datetime.UTC) year, week, _ = now.isocalendar() week_str = f"{week:02d}" # Ensure week is two digits diff --git a/.github/workflows/create-tag-and-release.yml b/.github/workflows/create-tag-and-release.yml index d2e6688..bde9ab8 100644 --- a/.github/workflows/create-tag-and-release.yml +++ b/.github/workflows/create-tag-and-release.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 # Necessary for scripts to access all tags and .github/release.yml - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.x'