Difference between revisions of "Uses: pre-commit/action"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
== Official example == | == Official example == | ||
− | + | name: pre-commit | |
− | + | ||
+ | on: | ||
+ | pull_request: | ||
+ | push: | ||
+ | branches: [main] | ||
+ | |||
+ | jobs: | ||
+ | pre-commit: | ||
+ | runs-on: ubuntu-latest | ||
+ | steps: | ||
+ | - uses: [[actions/checkout]]@v3 | ||
+ | - uses: [[actions/setup-python]]@v3 | ||
+ | - uses: pre-commit/[email protected] | ||
− | + | == Related == | |
− | + | * [[pre-commit.yml]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Latest revision as of 06:30, 17 July 2024
uses: pre-commit/[email protected]
uses: pre-commit/[email protected]
Official example[edit]
name: pre-commit on: pull_request: push: branches: [main] jobs: pre-commit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - uses: pre-commit/[email protected]
Related[edit]
See also[edit]
Advertising: