We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63416e7 commit a9927c8Copy full SHA for a9927c8
automation/is_already_updated.py
@@ -2,7 +2,6 @@
2
from github import Github
3
4
GITHUB_REPO = "mozilla/rust-components-swift"
5
-XC_FRAMEWORK_NAME = "MozillaRustComponents.xcframework.zip"
6
github_access_token = os.getenv("GITHUB_TOKEN")
7
as_version = os.getenv("AS_VERSION")
8
PACKAGE_SWIFT = "Package.swift"
@@ -13,10 +12,10 @@ def is_already_at_version():
13
12
while line:
14
line = fp.readline()
15
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
+ # If this is the line that has version
+ # of the xcframework
+ if "let version =" in line:
+ return line.strip() == f"let version = \"{as_version}\""
20
return False
21
22
def is_branch_created():
0 commit comments