-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
45 lines (37 loc) · 1.21 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
# action.yml
name: 'Upload files to Google Drive'
description: 'Upload files to 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: true
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: true
google-client-secret:
description: Your Google Drive API client secret
required: true
runs:
using: 'docker'
image: 'docker://mkrakowitzer/actions-googledrive:latest'
env:
SKICKA_TOKENCACHE_JSON: ${{ inputs.skicka-tokencache-json }}
UPLOAD_FROM: ${{ inputs.upload-from }}
UPLOAD_TO: ${{ inputs.upload-to }}
REMOVE_OUTDATED: ${{ inputs.remove-outdated }}
GOOGLE_CLIENT_ID: ${{ inputs.google-client-id }}
GOOGLE_CLIENT_SECRET: ${{ inputs.google-client-secret }}