|
2 | 2 |
|
3 | 3 | [](https://codeclimate.com/github/timorthi/export-workflow-logs/maintainability) [](https://opensource.org/licenses/MIT)
|
4 | 4 |
|
5 |
| -`export-workflow-logs` is a GitHub Action to automatically export the logs of a GitHub Actions Workflow run to popular cloud storage solutions like Amazon S3 and Azure Blob Storage. |
| 5 | +`export-workflow-logs` is a GitHub Action to automatically export the logs of a GitHub Actions Workflow run to popular cloud storage solutions like Amazon S3, Azure Blob Storage, and Google Cloud Storage. |
6 | 6 |
|
7 | 7 | The logs for workflow run are only [available for a limited time](https://docs.github.com/en/organizations/managing-organization-settings/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization) before they are automatically deleted. This Action moves workflow run logs to longer term storage to make them easily accessible in the future for auditing purposes.
|
8 | 8 |
|
@@ -77,11 +77,11 @@ This Action only supports one environment variable: set `DEBUG` to `true` to ena
|
77 | 77 |
|
78 | 78 | The following inputs are required regardless of the chosen destination:
|
79 | 79 |
|
80 |
| -| Name | Description | |
81 |
| -| ------------- | ------------------------------------------------------------------------------------------------------------------ | |
82 |
| -| `repo-token` | Token to use to fetch workflow logs. Typically the `GITHUB_TOKEN` secret. | |
83 |
| -| `run-id` | The workflow run ID for which to export logs. Typically obtained via the `github` context per the above example. | |
84 |
| -| `destination` | The service to export workflow logs to. Supported values: [`s3`](#amazon-s3), [`blobstorage`](#azure-blob-storage) | |
| 80 | +| Name | Description | |
| 81 | +| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 82 | +| `repo-token` | Token to use to fetch workflow logs. Typically the `GITHUB_TOKEN` secret. | |
| 83 | +| `run-id` | The workflow run ID for which to export logs. Typically obtained via the `github` context per the above example. | |
| 84 | +| `destination` | The service to export workflow logs to. Supported values: [`s3`](#amazon-s3), [`blobstorage`](#azure-blob-storage), [`cloudstorage`](#google-cloud-storage) | |
85 | 85 |
|
86 | 86 | ### [Amazon S3](https://aws.amazon.com/s3/)
|
87 | 87 |
|
@@ -111,6 +111,19 @@ The following inputs are required if `destination` is `blobstorage`:
|
111 | 111 | | `container-name` | The name of the Blob Storage Container to upload to |
|
112 | 112 | | `blob-name` | Blob name to save the workflow logs as |
|
113 | 113 |
|
| 114 | +### [Google Cloud Storage](https://cloud.google.com/storage/) |
| 115 | + |
| 116 | +[Example](examples/google-cloud-storage/) |
| 117 | + |
| 118 | +The Cloud Storage exporter uses the Object Writer API to save the workflow logs file. |
| 119 | + |
| 120 | +The following inputs are required if `destination` is `cloudstorage`: |
| 121 | + |
| 122 | +| Name | Description | |
| 123 | +| --------------------------- | -------------------------------------------------------- | |
| 124 | +| `cloud-storage-bucket-name` | The name of the Google Cloud Storage bucket to upload to | |
| 125 | +| `cloud-storage-object-name` | Object name to save the workflow logs as | |
| 126 | + |
114 | 127 | ## Development
|
115 | 128 |
|
116 | 129 | ### Testing
|
|
0 commit comments