if (FALSE) { # interactive()
# Get list of repositories
repositories <- repos("my-organization")
# Deploy a workflow file to all repositories
results <- file_deploy(
source_file = "local/path/to/workflow.yml",
target_path = ".github/workflows/ci.yml",
repos = repositories
)
# Filter to see only successfully updated repositories
updated <- results[results$status == "updated", ]
# Check for any errors
errors <- results[results$status == "error", ]
}
Run the code above in your browser using DataLab