Skip to content

Commit a9b5425

Browse files
committed
feat: add s3 caching
1 parent bc3ac08 commit a9b5425

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

lint/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ jobs:
1919
2020
## Inputs
2121
22-
| parameter | description | required | default |
23-
| ------------- | ----------------------------------------------------------------------------------------------------------------- | -------- | ------------------- |
24-
| checkout-repo | Perform checkout as first step of action | `false` | true |
25-
| pypi-token | PyPI token that can checkout the repository as well as create tags/releases against it. e.g. 'secrets.PYPI_TOKEN' | `false` | |
26-
| github-token | GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN' | `true` | ${{ github.token }} |
22+
| name | description | required | default |
23+
| ------------------ | ---------------------------------------------------------------------------------- | -------- | ------- |
24+
| `checkout-repo` | <p>Perform checkout as first step of action</p> | `false` | `true` |
25+
| `github-token` | <p>GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN'</p> | `true` | `""` |
26+
| `release-notes` | <p>Whether to generate release notes for the pull request</p> | `false` | `true` |
27+
| `s3-bucket-name` | <p>S3 bucket name to cache node_modules to speed up dependency installation.</p> | `false` | `""` |
28+
| `s3-bucket-region` | <p>S3 bucket region to cache node_modules to speed up dependency installation.</p> | `false` | `""` |
2729

2830
## Runs
2931

lint/action.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ inputs:
1313
required: false
1414
description: Whether to generate release notes for the pull request
1515
default: "true"
16+
s3-bucket-name:
17+
required: false
18+
description: S3 bucket name to cache node_modules to speed up dependency installation.
19+
s3-bucket-region:
20+
required: false
21+
description: S3 bucket region to cache node_modules to speed up dependency installation.
1622

1723
runs:
1824
using: composite
@@ -29,3 +35,6 @@ runs:
2935
fetch-depth: 0
3036
- name: Run pre-commit
3137
uses: open-turo/action-pre-commit@v3
38+
with:
39+
s3-bucket-name: ${{ inputs.s3-bucket-name }}
40+
s3-bucket-region: ${{ inputs.s3-bucket-region }}

0 commit comments

Comments
 (0)