More GitHub Packages bulk upload fixes

- replace invalid non-ASCII characters from the descriptions
- handle invalid macOS versions on attempting to load old formulae from
  old bottles
- let `rubocop` auto-remove a no-longer needed `rubocop:disable`
- fix `skopeo` credentials argument
This commit is contained in:
Mike McQuaid
2021-04-07 17:03:44 +01:00
parent 0cad0dfe55
commit 8800b85f64
4 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -195,9 +195,9 @@ class GitHubPackages
puts
inspect_args = ["inspect", image_uri.to_s]
if dry_run
puts "#{skopeo} #{inspect_args.join(" ")} --dest-creds=#{user}:$HOMEBREW_GITHUB_PACKAGES_TOKEN"
puts "#{skopeo} #{inspect_args.join(" ")} --creds=#{user}:$HOMEBREW_GITHUB_PACKAGES_TOKEN"
else
inspect_args << "--dest-creds=#{user}:#{token}"
inspect_args << "--creds=#{user}:#{token}"
inspect_result = system_command(skopeo, args: inspect_args)
if inspect_result.status.success?
if warn_on_error