Skip to content

Commit

Permalink
feat: add s3 caching
Browse files Browse the repository at this point in the history
  • Loading branch information
armand-sauzay committed Sep 10, 2024
1 parent bc3ac08 commit a9b5425
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
## Inputs
| parameter | description | required | default |
| ------------- | ----------------------------------------------------------------------------------------------------------------- | -------- | ------------------- |
| checkout-repo | Perform checkout as first step of action | `false` | true |
| pypi-token | PyPI token that can checkout the repository as well as create tags/releases against it. e.g. 'secrets.PYPI_TOKEN' | `false` | |
| github-token | GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN' | `true` | ${{ github.token }} |
| name | description | required | default |
| ------------------ | ---------------------------------------------------------------------------------- | -------- | ------- |
| `checkout-repo` | <p>Perform checkout as first step of action</p> | `false` | `true` |
| `github-token` | <p>GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN'</p> | `true` | `""` |
| `release-notes` | <p>Whether to generate release notes for the pull request</p> | `false` | `true` |
| `s3-bucket-name` | <p>S3 bucket name to cache node_modules to speed up dependency installation.</p> | `false` | `""` |
| `s3-bucket-region` | <p>S3 bucket region to cache node_modules to speed up dependency installation.</p> | `false` | `""` |

## Runs

Expand Down
9 changes: 9 additions & 0 deletions lint/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ inputs:
required: false
description: Whether to generate release notes for the pull request
default: "true"
s3-bucket-name:
required: false
description: S3 bucket name to cache node_modules to speed up dependency installation.
s3-bucket-region:
required: false
description: S3 bucket region to cache node_modules to speed up dependency installation.

runs:
using: composite
Expand All @@ -29,3 +35,6 @@ runs:
fetch-depth: 0
- name: Run pre-commit
uses: open-turo/action-pre-commit@v3
with:
s3-bucket-name: ${{ inputs.s3-bucket-name }}
s3-bucket-region: ${{ inputs.s3-bucket-region }}

0 comments on commit a9b5425

Please sign in to comment.