-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yaml
40 lines (39 loc) · 1.24 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
name: Python Lint
description: GitHub Action that lints a Python based repository
inputs:
checkout-repo:
required: false
description: Perform checkout as first step of action
default: "true"
github-token:
required: true
description: GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN'
default: ""
release-notes:
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
steps:
- name: Authorize
uses: open-turo/action-git-auth@v3
if: inputs.github-token != ''
with:
github-personal-access-token: ${{ inputs.github-token }}
- name: Checkout
uses: actions/checkout@v4
if: inputs.checkout-repo == 'true'
with:
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 }}