28 lines
759 B
Text
28 lines
759 B
Text
|
|
# tools/homebrew/copy.bara.sky
|
||
|
|
|
||
|
|
# Source: Your Monorepo
|
||
|
|
sourceUrl = "https://forgejo.csbx.dev/acmcarther/yesod.git"
|
||
|
|
# Destination: The Public Homebrew Tap
|
||
|
|
destinationUrl = "https://forgejo.csbx.dev/acmcarther/yesod-homebrew-tools.git"
|
||
|
|
|
||
|
|
core.workflow(
|
||
|
|
name = "default",
|
||
|
|
origin = git.origin(
|
||
|
|
url = sourceUrl,
|
||
|
|
ref = "main",
|
||
|
|
),
|
||
|
|
destination = git.destination(
|
||
|
|
url = destinationUrl,
|
||
|
|
fetch = "main",
|
||
|
|
push = "main",
|
||
|
|
),
|
||
|
|
# Only look at the homebrew directory
|
||
|
|
origin_files = glob(["homebrew/*.rb"]),
|
||
|
|
|
||
|
|
authoring = authoring.pass_thru("Copybara <copybara@csbx.dev>"),
|
||
|
|
|
||
|
|
# Move homebrew/<file> -> <file> in the destination
|
||
|
|
transformations = [
|
||
|
|
core.move("homebrew", ""),
|
||
|
|
],
|
||
|
|
)
|