-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
73 lines (70 loc) · 2.11 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
name: "Artifact Submit Action"
author: "Ace Archive"
description: >
A GitHub action for submitting artifacts to Ace Archive.
inputs:
mode:
description: >
The mode to operate in, either `validate` or `upload`.
In `validate` mode, the syntax of the submission files is validated and
the hashes and media types of files without one are computed and added to
the submission JSON in the job's local clone of the repo.
In `upload` mode, files are downloaded, their hashes are validated, and
they are uploaded to S3.
required: true
path:
description: >
The path of the directory in the git repository to read the submission
JSON files from.
required: true
base_url:
description: >
The base URL that artifact files will be hosted from.
required: true
base_ref:
description: >
The ref of the base branch, used to determine which files have changed in
this PR.
required: true
s3_endpoint:
description: >
The S3 endpoint URL. This is only required when using a non-AWS
implementation of the S3 API.
s3_bucket:
description: >
The name of the S3 bucket.
required: true
s3_prefix:
description: >
A prefix to add to all S3 object keys. You can also think of this like the
name of a "directory" in the bucket.
s3_region:
description: >
The AWS region name for S3.
required: true
s3_access_key_id:
description: >
The access key ID for S3.
required: true
s3_secret_access_key:
description: >
The secret access key for S3.
required: true
submission_worker_domain:
description: >
The domain name of the submission-worker instance used to upload metadata
to the database.
required: true
submission_worker_secret:
description: >
The secret used to authenticate with submission-worker in order to upload
metadata to the database.
required: true
outputs:
artifacts:
description: >
A JSON array containing the artifact metadata generated from each
submission file.
runs:
using: "node16"
main: "dist/index.js"