Skip to content

Commit

Permalink
Refactor follow up on focus-ios changes and fix github action (mozill…
Browse files Browse the repository at this point in the history
…a-mobile#3926)

* Refactor follow up fix github action

* remove debug lines

* update also path in github action file
  • Loading branch information
isabelrios authored Nov 22, 2023
1 parent f19716a commit 9811238
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: env.BRANCH_CREATED == 'false'
run: |-
git diff
git diff --quiet || (git add Blockzilla.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved Blockzilla.xcodeproj/project.pbxproj)
git diff --quiet || (git add focus-ios/Blockzilla.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved focus-ios/Blockzilla.xcodeproj/project.pbxproj)
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
if: env.BRANCH_CREATED == 'false'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


GITHUB_REPO = "mozilla/rust-components-swift"
SPM_PACKAGE = "Blockzilla.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved"
BLOCKZILLA_PROJECT = "Blockzilla.xcodeproj/project.pbxproj"
SPM_PACKAGE = "focus-ios/Blockzilla.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved"
BLOCKZILLA_PROJECT = "focus-ios/Blockzilla.xcodeproj/project.pbxproj"
github_access_token = os.getenv("GITHUB_TOKEN")

def get_latest_rust_components_version():
Expand Down Expand Up @@ -113,7 +113,7 @@ def main():
update_proj_file(current_min_version, rust_component_repo_tag, BLOCKZILLA_PROJECT)

# Save the newer version to be used in the PR info
f= open("focus-ios/github-actions-scripts/newest_tag.txt","w+")
f= open("focus-ios/focus-ios-tests/github-actions-scripts/newest_tag.txt","w+")
f.write(rust_component_repo_tag+"\n")

if __name__ == '__main__':
Expand Down

0 comments on commit 9811238

Please sign in to comment.