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

Rename GHHELPER_REPO to GITHUB_REPO #20072

Merged
merged 1 commit into from
Feb 7, 2023
Merged
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 fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ALL_JETPACK_BUNDLE_IDENTIFIERS = [JETPACK_BUNDLE_IDENTIFIER, *JETPACK_EXTENSIONS
# Environment Variables — used by lanes but also potentially actions
Dotenv.load(USER_ENV_FILE_PATH)
Dotenv.load(PROJECT_ENV_FILE_PATH)
GHHELPER_REPO = 'wordpress-mobile/wordpress-iOS'
GITHUB_REPO = 'wordpress-mobile/wordpress-iOS'
ENV['PROJECT_NAME'] = 'WordPress'
ENV['PUBLIC_CONFIG_FILE'] = File.join(PROJECT_ROOT_FOLDER, 'config', 'Version.Public.xcconfig')
ENV['INTERNAL_CONFIG_FILE'] = File.join(PROJECT_ROOT_FOLDER, 'config', 'Version.internal.xcconfig')
Expand Down
2 changes: 1 addition & 1 deletion fastlane/lanes/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

version = options[:beta_release] ? ios_get_build_version : ios_get_app_version
create_release(
repository: GHHELPER_REPO,
repository: GITHUB_REPO,
version: version,
release_notes_file_path: File.join(PROJECT_ROOT_FOLDER, 'WordPress', 'Resources', 'release_notes.txt'),
release_assets: archive_zip_path.to_s,
Expand Down
12 changes: 6 additions & 6 deletions fastlane/lanes/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
)
ios_update_release_notes(new_version: new_version)

setbranchprotection(repository: GHHELPER_REPO, branch: "release/#{new_version}")
setfrozentag(repository: GHHELPER_REPO, milestone: new_version)
setbranchprotection(repository: GITHUB_REPO, branch: "release/#{new_version}")
setfrozentag(repository: GITHUB_REPO, milestone: new_version)
ios_check_beta_deps(podfile: File.join(PROJECT_ROOT_FOLDER, 'Podfile'))

print_release_notes_reminder
Expand Down Expand Up @@ -142,10 +142,10 @@

# Wrap up
version = ios_get_app_version
removebranchprotection(repository: GHHELPER_REPO, branch: release_branch_name)
setfrozentag(repository: GHHELPER_REPO, milestone: version, freeze: false)
create_new_milestone(repository: GHHELPER_REPO)
close_milestone(repository: GHHELPER_REPO, milestone: version)
removebranchprotection(repository: GITHUB_REPO, branch: release_branch_name)
setfrozentag(repository: GITHUB_REPO, milestone: version, freeze: false)
create_new_milestone(repository: GITHUB_REPO)
close_milestone(repository: GITHUB_REPO, milestone: version)

trigger_release_build
end
Expand Down