-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
111 lines (111 loc) · 3.51 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: 'Google Photos exporter'
description: 'Exports Google Photos to different targets'
inputs:
googlePhotosClientId:
description: 'Google photos client ID'
required: true
googlePhotosClientSecret:
description: 'Google photos client secret'
required: true
googlePhotosRefreshToken:
description: 'Google photos refresh token'
required: true
exporter:
description: 'Where to store content (github, dropbox, box or onedrive)'
required: true
itemType:
description: 'Allows exporting just specific item types (photo or video)'
required: false
prefixPath:
description: 'Path to be used as base for the exported files'
required: false
maxChunkSize:
description: 'Maximum size (in MB) of each chunk'
required: false
offsetId:
description: 'ID of the item to use as offset (not included)'
required: false
datePatternPath:
description: 'LocalDate pattern to use for the path of the item'
required: false
syncFileName:
description: 'Name of the file where last successful item ID will be stored'
required: false
timeout:
description: 'Timeout for the runner'
required: false
requestTimeout:
description: 'Timeout for the requests'
required: false
overrideContent:
description: 'Whether to override content'
required: false
githubAccessToken:
description: 'GitHub access token'
required: false
githubRepositoryOwner:
description: 'GitHub repository owner'
required: false
githubRepositoryName:
description: 'GitHub repository name'
required: false
dropboxAppKey:
description: 'Dropbox app key'
required: false
dropboxAppSecret:
description: 'Dropbox app secret'
required: false
dropboxRefreshToken:
description: 'Dropbox refresh token'
required: false
boxClientId:
description: 'Box client ID'
required: false
boxClientSecret:
description: 'Box client secret'
required: false
boxUserId:
description: 'Box user ID'
required: false
onedriveClientId:
description: 'OneDrive client ID'
required: false
onedriveClientSecret:
description: 'OneDrive client secret'
required: false
onedriveRefreshToken:
description: 'OneDrive refresh token'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.exporter }}
- ${{ inputs.itemType }}
- ${{ inputs.maxChunkSize }}
- ${{ inputs.prefixPath }}
- ${{ inputs.offsetId }}
- ${{ inputs.datePatternPath }}
- ${{ inputs.syncFileName }}
- ${{ inputs.timeout }}
- ${{ inputs.requestTimeout }}
- ${{ inputs.overrideContent }}
env:
GOOGLE_PHOTOS_CLIENT_ID: ${{ inputs.googlePhotosClientId }}
GOOGLE_PHOTOS_CLIENT_SECRET: ${{ inputs.googlePhotosClientSecret }}
GOOGLE_PHOTOS_REFRESH_TOKEN: ${{ inputs.googlePhotosRefreshToken }}
GITHUB_ACCESS_TOKEN: ${{ inputs.githubAccessToken }}
GITHUB_REPOSITORY_OWNER: ${{ inputs.githubRepositoryOwner }}
GITHUB_REPOSITORY_NAME: ${{ inputs.githubRepositoryName }}
DROPBOX_APP_KEY: ${{ inputs.dropboxAppKey }}
DROPBOX_APP_SECRET: ${{ inputs.dropboxAppSecret }}
DROPBOX_REFRESH_TOKEN: ${{ inputs.dropboxRefreshToken }}
BOX_CLIENT_ID: ${{ inputs.boxClientId }}
BOX_CLIENT_SECRET: ${{ inputs.boxClientSecret }}
BOX_USER_ID: ${{ inputs.boxUserId }}
ONEDRIVE_CLIENT_ID: ${{ inputs.onedriveClientId }}
ONEDRIVE_CLIENT_SECRET: ${{ inputs.onedriveClientSecret }}
ONEDRIVE_REFRESH_TOKEN: ${{ inputs.onedriveRefreshToken }}
branding:
icon: 'camera'
color: 'blue'