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

sync-shared-config: sync private repos. #116

Merged
merged 1 commit into from
May 24, 2024
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
7 changes: 7 additions & 0 deletions .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ def git(*args)
key.match?(%r{\Arequire|inherit_from|inherit_mode|Cask/|Formula|Homebrew|Performance/|RSpec|Sorbet/})
end.to_yaml

custom_ruby_version_repos = %w[
mass-bottling-tracker-private
].freeze
custom_rubocop_repos = %w[
ci-orchestrator
mass-bottling-tracker-private
orka_api_client
ruby-macho
].freeze
custom_dependabot_repos = %w[
brew
brew-pip-audit
ci-orchestrator
].freeze

Expand All @@ -63,6 +68,8 @@ def git(*args)

case file
when ruby_version
next if custom_ruby_version_repos.include?(repository_name)

target_path.write("#{homebrew_ruby_version}\n")
when rubocop_yml
next if custom_rubocop_repos.include?(repository_name)
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/sync-shared-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
- Homebrew/orka_api_client
- Homebrew/ruby-macho
- Homebrew/rubydoc.brew.sh
- Homebrew/mass-bottling-tracker-private
MikeMcQuaid marked this conversation as resolved.
Show resolved Hide resolved
- Homebrew/governance-private
- Homebrew/security-private
- Homebrew/ops-private
fail-fast: false
steps:
- name: Set up Homebrew
Expand All @@ -70,6 +74,7 @@ jobs:
with:
repository: ${{ matrix.repo }}
path: vendor/${{ matrix.repo }}
token: ${{ secrets.HOMEBREW_DOTGITHUB_WORKFLOW_TOKEN }}
persist-credentials: false

- name: Configure Git user
Expand Down