You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Action that runs [Copybara](https://github.com/google/copybara)
3
+
Runs [Copybara](https://github.com/google/copybara) in GitHub Actions
4
+
5
+
## Usage
6
+
Specify `wilmol/copybara-action@v1` as a `step` in your `workflow.yml` file, for example:
7
+
```
8
+
steps:
9
+
- uses: actions/checkout@v1
10
+
11
+
- uses: wilmol/copybara-action@v1
12
+
with:
13
+
git_name: wilmol
14
+
git_email: willjoemolloy@gmail.com
15
+
ssh_key: ${{ secrets.SSH_KEY }}
16
+
ssh_known_hosts: ${{ secrets.KNOWN_HOSTS }}
17
+
```
18
+
19
+
__Note,__ internally the action runs docker (specifically [this image](https://hub.docker.com/r/sharelatex/copybara)) so the step must run on Linux.
20
+
21
+
## Arguments
22
+
| Input | Description | Usage |
23
+
| :---: | :---: | :---: |
24
+
|`git_name`| git config username, for authoring with Copybara |_required_|
25
+
|`git_email`| git config email, for authoring with Copybara |_required_|
26
+
|`ssh_key`| ssh public key, for authenticating with Copybara |_required_|
27
+
|`ssh_known_hosts`| ssh known hosts file contents, for authenticating with Copybara |_required_|
28
+
|`path`|`copy.bara.sky` file path | optional (defaults to repo root) |
29
+
30
+
See https://github.com/google/copybara for more details, specifically [Using Docker to build and run Copybara](https://github.com/google/copybara#using-docker-to-build-and-run-copybara).
0 commit comments