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
This is a Github Action that syncs a folder to a Google Cloud bucket using `rclone`.
4
+
This action is only meant to work for Deephaven's documentation. It could be used in a more general purpose way to sync a folder into any Google cloud bucket (with the proper credentials), but that is subject to change and may break in any version.
5
+
6
+
## Parameters
7
+
```
8
+
inputs:
9
+
source:
10
+
required: true
11
+
type: string
12
+
description: 'The source directory to sync.'
13
+
destination:
14
+
required: true
15
+
type: string
16
+
description: 'The destination directory to sync. Relative to the bucket. It is recommended to use the GitHub repo path (such as deephaven/salmon-sync) as the minimum base to prevent collisions.'
17
+
project_number:
18
+
required: true
19
+
type: string
20
+
description: 'The Google Cloud project number.'
21
+
bucket:
22
+
required: true
23
+
type: string
24
+
description: 'The Google Cloud bucket to sync to.'
25
+
credentials:
26
+
required: true
27
+
type: string
28
+
description: 'The Google Cloud credentials. Should be base64 encoded.'
29
+
```
30
+
31
+
## Example
32
+
The action can be used as a step in a workflow
33
+
Here is an example that syncs from the local path `temp/blog` to the blog section of the bucket.
description: Syncs a directory to a Google Cloud bucket using rclone.
3
+
author: 'deephaven'
4
+
inputs:
5
+
source:
6
+
required: true
7
+
type: string
8
+
description: 'The source directory to sync.'
9
+
destination:
10
+
required: true
11
+
type: string
12
+
description: 'The destination directory to sync. Relative to the bucket. It is recommended to use the GitHub repo path (such as deephaven/salmon-sync) as the minimum base to prevent collisions.'
13
+
project_number:
14
+
required: true
15
+
type: string
16
+
description: 'The Google Cloud project number.'
17
+
bucket:
18
+
required: true
19
+
type: string
20
+
description: 'The Google Cloud bucket to sync to.'
21
+
credentials:
22
+
required: true
23
+
type: string
24
+
description: 'The Google Cloud credentials. Should be base64 encoded.'
0 commit comments