-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yaml
80 lines (80 loc) · 2.86 KB
/
action.yaml
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
name: 'Republish LDES'
branding:
icon: 'fast-forward'
color: 'blue'
description: 'Replicates a Linked Data Event Stream or tree:Collection to your GitHub repository'
inputs:
url:
description: 'URL to LDES or tree:Collection dataset'
required: true
storage:
description: 'Output directory name where the fetched data will be stored'
required: true
gh_pages_url:
description: 'URL to the GitHub Pages repository'
required: false
default: 'https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/'
git_username:
description: 'Git username that makes the commits'
required: false
default: 'LDES-action'
git_email:
description: 'Git email that makes the commits'
required: false
default: 'LDES-action@users.noreply.github.com'
fragmentation_strategy:
description: 'The fragmentation strategy to be applied on LDES members'
required: false
default: 'basic'
fragmentation_page_size:
description: 'RDF object count per page'
required: false
default: "50"
datasource_strategy:
description: 'Datasource strategy to use'
required: false
default: 'ldes-client'
property_path:
description: 'Property path to be used by bucketizers'
required: false
stream_data:
description: 'Boolean whether to stream the LDES members or the load them in memory'
required: false
default: 'false'
timeout:
description: 'Amount of time in milliseconds to wait for the datasource to fetch data in a single run'
required: false
default: '3600000'
announce:
description: 'Announce the published LDES view to https://tree.linkeddatafragments.org/announcements/'
required: false
default: 'true'
outputs:
delta_bytes: # size of changed data
description: 'The overall number of bytes changed in the output data this run (current size - previous size)'
runs:
using: 'composite'
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Run main script
run: node ${{ github.action_path }}/dist/index.js
shell: bash
env:
INPUT_URL: ${{ inputs.url }}
INPUT_STORAGE: ${{ inputs.storage }}
INPUT_GH_PAGES_URL: ${{ inputs.gh_pages_url }}
INPUT_GIT_USERNAME: ${{ inputs.git_username }}
INPUT_GIT_EMAIL: ${{ inputs.git_email }}
INPUT_FRAGMENTATION_STRATEGY: ${{ inputs.fragmentation_strategy }}
INPUT_FRAGMENTATION_PAGE_SIZE: ${{ inputs.fragmentation_page_size }}
INPUT_DATASOURCE_STRATEGY: ${{ inputs.datasource_strategy }}
INPUT_PROPERTY_PATH: ${{ inputs.property_path }}
INPUT_STREAM_DATA: ${{ inputs.stream_data }}
INPUT_TIMEOUT: ${{ inputs.timeout }}
INPUT_ANNOUNCE: ${{ inputs.announce }}
- name: Run post script
run: node ${{ github.action_path }}/dist/post/index.js
shell: bash