-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
61 lines (58 loc) · 2.82 KB
/
action.yml
File metadata and controls
61 lines (58 loc) · 2.82 KB
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
name: "Export Workflow Run Logs"
description: "An action to automatically export GitHub Actions Workflow run logs to popular cloud storage solutions like S3." # NOTE: This field has a 125 character limit
branding:
icon: "save"
color: "gray-dark"
inputs:
repo-token:
description: "GitHub API token to make requests with."
required: true
run-id:
description: "The workflow run ID to export logs for"
required: true
destination:
description: "The service to export workflow logs to"
required: true
aws-access-key-id:
description: "AWS Access Key ID. Required if destination is 's3'."
aws-secret-access-key:
description: "AWS Secret Access Key. Required if destination is 's3'."
aws-session-token:
description: "AWS Session Token. Required if destination is 's3' and if using temporary credentials."
aws-region:
description: "AWS Region in which the S3 bucket is located. Required if destination is 's3'."
s3-bucket-name:
description: "S3 Bucket to export workflow logs to. Required if destination is 's3'."
s3-key:
description: "S3 path to save the workflow logs to. Required if destination is 's3'."
azure-storage-account-name:
description: "The Azure storage account name. Required if destination is 'blobstorage'."
azure-storage-account-key:
description: "Access key for the storage account. Required if destination is 'blobstorage'."
container-name:
description: "Container name to save the workflow logs to. Required if destination is 'blobstorage'."
blob-name:
description: "Blob name to save the workflow logs as. Required if destination is 'blobstorage'."
cloud-storage-bucket-name:
description: "Cloud Storage Bucket name to save the workflow logs to. Required if destination is 'cloudstorage'."
cloud-storage-object-name:
description: "Cloud Storage object name to save the workflow logs as. Required if destination is 'cloudstorage'."
runs:
using: "docker"
image: docker://ghcr.io/timorthi/export-workflow-logs:sha-1fdc0e0
args:
- --repo-token=${{ inputs.repo-token }}
- --run-id=${{ inputs.run-id }}
- --destination=${{ inputs.destination }}
- --aws-access-key-id=${{ inputs.aws-access-key-id }}
- --aws-secret-access-key=${{ inputs.aws-secret-access-key }}
- --aws-session-token=${{ inputs.aws-session-token }}
- --aws-region=${{ inputs.aws-region }}
- --s3-bucket-name=${{ inputs.s3-bucket-name }}
- --s3-key=${{ inputs.s3-key }}
- --azure-storage-account-name=${{ inputs.azure-storage-account-name }}
- --azure-storage-account-key=${{ inputs.azure-storage-account-key }}
- --container-name=${{ inputs.container-name }}
- --blob-name=${{ inputs.blob-name }}
- --cloud-storage-bucket-name=${{ inputs.cloud-storage-bucket-name }}
- --cloud-storage-object-name=${{ inputs.cloud-storage-object-name }}