Skip to content

Commit 4bef399

Browse files
committed
fetch latest tag during release
1 parent 76acb64 commit 4bef399

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'src/**'
1010
- 'tests/**'
1111
schedule:
12-
# every weekday at 9:00 AM PST
12+
# every weekday at 17:00 UTC
1313
- cron: '0 17 * * 1-5'
1414

1515
jobs:

scripts/release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def get_version_increment_type(last_version):
3838
return parsed_subjects.increment_type()
3939

4040

41-
def pull_latest_and_verify(expected_version_tag):
42-
check_output(["git", "pull"])
41+
def fetch_latest_and_verify(expected_version_tag):
42+
check_output(["git", "fetch"])
4343
latest_version = get_current_version()
4444
if latest_version != expected_version_tag:
4545
raise ValueError(f"Expected {expected_version_tag} to be latest tag, but was {latest_version}")
@@ -73,7 +73,7 @@ def release():
7373
tag_created = manager.create_release()
7474

7575
# pull the new tag that was just created
76-
pull_latest_and_verify(tag_created)
76+
fetch_latest_and_verify(tag_created)
7777

7878

7979
def main():

0 commit comments

Comments
 (0)