forked from cringdahl/sharepoint-file-upload-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
56 lines (56 loc) · 1.6 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
# action.yaml
name: 'Upload File to Sharepoint'
description: 'Upload one or more files in a directory to Sharepoint site using client ID'
inputs:
file_path:
description: 'Source file path (glob ok)'
required: true
site_name:
description: 'Sharepoint site name (see README.md)'
required: true
host_name:
description: 'Sharepoint host name (see README.md)'
required: true
upload_path:
description: 'Target upload path (see README.md)'
required: true
tenant_id:
description: 'Sharepoint tenant ID'
required: true
client_id:
description: 'Sharepoint client ID'
required: true
client_secret:
description: 'Sharepoint client secret'
required: true
max_retries:
description: 'Max retries for upload'
required: false
default: 3
login_endpoint:
description: 'Microsoft Online Login API Endpoint (see README.md)'
required: false
default: "login.microsoftonline.com"
graph_endpoint:
description: 'Microsoft Graph API Endpoint (see README.md)'
required: false
default: "graph.microsoft.com"
outputs:
return:
description: 'Function output'
# need to specify the extra `value` field for `composite` actions
value: ${{ steps.send-file.outputs.return }}
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.site_name }}
- ${{ inputs.host_name }}
- ${{ inputs.tenant_id }}
- ${{ inputs.client_id }}
- ${{ inputs.client_secret }}
- ${{ inputs.upload_path }}
- ${{ inputs.file_path }}
- ${{ inputs.max_retries }}
- ${{ inputs.login_endpoint }}
- ${{ inputs.graph_endpoint }}