Skip to content

Commit a9927c8

Browse files
author
Tarik Eshaq
authored
updates the is_already_updated to match update package script (#24)
1 parent 63416e7 commit a9927c8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

automation/is_already_updated.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from github import Github
33

44
GITHUB_REPO = "mozilla/rust-components-swift"
5-
XC_FRAMEWORK_NAME = "MozillaRustComponents.xcframework.zip"
65
github_access_token = os.getenv("GITHUB_TOKEN")
76
as_version = os.getenv("AS_VERSION")
87
PACKAGE_SWIFT = "Package.swift"
@@ -13,10 +12,10 @@ def is_already_at_version():
1312
while line:
1413
line = fp.readline()
1514

16-
# If this is the line that has the URL to
17-
# the xcframework
18-
if XC_FRAMEWORK_NAME in line:
19-
return as_version in line
15+
# If this is the line that has version
16+
# of the xcframework
17+
if "let version =" in line:
18+
return line.strip() == f"let version = \"{as_version}\""
2019
return False
2120

2221
def is_branch_created():

0 commit comments

Comments
 (0)