yesod-mirror/tools/copybara/homebrew/copy.bara.sky

28 lines
759 B
Text
Raw Permalink Normal View History

# 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", ""),
],
)