-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(github-actions): create org-file-sync action
Create an org-file-sync action which allows for automatically synchronizing organization level files from the `.github` directory with target repositories automatically. The angular-robot Github app will automatically push changes to keep the registered files in sync.
- Loading branch information
1 parent
73d4292
commit 4abbb11
Showing
6 changed files
with
15,795 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
load("//tools:defaults.bzl", "esbuild_checked_in", "ts_library") | ||
|
||
package(default_visibility = ["//github-actions/org-file-sync:__subpackages__"]) | ||
|
||
ts_library( | ||
name = "org-file-sync", | ||
srcs = glob( | ||
["src/*.ts"], | ||
), | ||
deps = [ | ||
"//github-actions:utils", | ||
"@npm//@actions/core", | ||
"@npm//@actions/github", | ||
"@npm//@octokit/rest", | ||
"@npm//@octokit/types", | ||
"@npm//@types/node", | ||
], | ||
) | ||
|
||
esbuild_checked_in( | ||
name = "main", | ||
entry_point = ":src/main.ts", | ||
target = "node16", | ||
deps = [ | ||
":org-file-sync", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Organization File Sync | ||
|
||
This directory contains an action which can be executed in the `.github` repository. Based on the | ||
configured list of files and repositories, the action will ensure the all of the provided files in | ||
the provided repositories are kept in sync with the `.github` repository. | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Organization File Sync' | ||
description: 'Synchronize files throughout the Github Organization' | ||
author: 'Angular' | ||
inputs: | ||
angular-robot-key: | ||
description: 'The private key for the Angular Robot Github app.' | ||
required: true | ||
repos: | ||
description: 'The repositories to keep organization level files in sync' | ||
required: true | ||
files: | ||
description: 'The organization level files to keep in sync' | ||
required: true | ||
|
||
runs: | ||
using: 'node16' | ||
main: 'main.js' |
Oops, something went wrong.