-
Notifications
You must be signed in to change notification settings - Fork 15
/
action.yml
56 lines (45 loc) · 1.47 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Interact with Google Drive
description: Upload/Download files to/from Google Drive
branding:
icon: upload-cloud
color: 'gray-dark'
inputs:
skicka-tokencache-json:
description: 'Content of `~/.skicka.tokencache.json` created by the `skicka` command'
required: true
upload-from:
description: 'The path where the files to upload are located'
default: './'
required: false
upload-to:
description: 'The path where the files to be uploaded is located'
required: false
download-from:
description: The path where the files to download are located
required: false
download-to:
description: The path where the files to be downloaded is located
required: false
default: ./
remove-outdated:
description: 'Whether to delete files that do not exist locally'
default: 'true'
required: false
google-client-id:
description: Your Google Drive API client ID
required: false
google-client-secret:
description: Your Google Drive API client secret
required: false
runs:
using: docker
image: Dockerfile
env:
SKICKA_TOKENCACHE_JSON: ${{ inputs.skicka-tokencache-json }}
UPLOAD_FROM: ${{ inputs.upload-from }}
UPLOAD_TO: ${{ inputs.upload-to }}
DOWNLOAD_FROM: ${{ inputs.download-from }}
DOWNLOAD_TO: ${{ inputs.download-to }}
REMOVE_OUTDATED: ${{ inputs.remove-outdated }}
GOOGLE_CLIENT_ID: ${{ inputs.google-client-id }}
GOOGLE_CLIENT_SECRET: ${{ inputs.google-client-secret }}