diff --git a/.github/github_workflow_scripts/autobump_rn.py b/.github/github_workflow_scripts/autobump_rn.py index 6e5f99ddac04..6f011c5a8902 100644 --- a/.github/github_workflow_scripts/autobump_rn.py +++ b/.github/github_workflow_scripts/autobump_rn.py @@ -24,7 +24,7 @@ ORGANIZATION_NAME = "demisto" REPO_MANE = "content" -BASE = "master" +BASE = "fix_autobump_timezone_test" PR_COMMENT_TITLE = "### This PR was automatically updated by a " \ "[GitHub Action](https://github.com/demisto/content/actions/runs/{})\n" PR_COMMENT = "- **{}** pack version was bumped to **{}**.\n" diff --git a/.github/github_workflow_scripts/skip_conditions.py b/.github/github_workflow_scripts/skip_conditions.py index 0fc1f86d6b0d..c7f71b4f1fa4 100644 --- a/.github/github_workflow_scripts/skip_conditions.py +++ b/.github/github_workflow_scripts/skip_conditions.py @@ -1,5 +1,5 @@ from abc import ABC, abstractmethod -from datetime import datetime, timedelta +from datetime import datetime, timedelta, timezone from enum import Enum from pathlib import Path from demisto_sdk.commands.common.tools import get_pack_names_from_files @@ -261,7 +261,7 @@ def _check( Returns(ConditionResult): whether the condition check pass, or we should skip this pr from auto-bumping its release notes, with the reason why to skip. """ - if self.pr.updated_at and self.pr.updated_at < datetime.now() - timedelta( + if self.pr.updated_at and self.pr.updated_at < datetime.now(timezone.utc) - timedelta( days=self.LAST_SUITABLE_UPDATE_TIME_DAYS ): return ConditionResult( diff --git a/.github/workflows/autobump_rn.yml b/.github/workflows/autobump_rn.yml index c122964dd16b..525175591de3 100644 --- a/.github/workflows/autobump_rn.yml +++ b/.github/workflows/autobump_rn.yml @@ -2,7 +2,7 @@ name: Autobump Version on: push: branches: - - master + - fix_autobump_timezone_test permissions: pull-requests: write