Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autobump timezone test #36557

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/github_workflow_scripts/autobump_rn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/github_workflow_scripts/skip_conditions.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autobump_rn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Autobump Version
on:
push:
branches:
- master
- fix_autobump_timezone_test

permissions:
pull-requests: write
Expand Down
Loading