Difference between revisions of "Uses: pre-commit/action"

From wikieduonline
Jump to navigation Jump to search
(Created page with "* <code>uses: pre-commit/[email protected]</code> * <code>uses: pre-commit/action@v3.0.0</code> * {{uses:}} * {{pre-commit}}")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
 +
* <code>[[uses:]] pre-commit/[email protected]</code>
 
* <code>[[uses:]] [[pre-commit]]/[email protected]</code>
 
* <code>[[uses:]] [[pre-commit]]/[email protected]</code>
* <code>[[uses: pre-commit/action]]@v3.0.0</code>
 
  
  
 +
== 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 ==
 
* {{uses:}}
 
* {{uses:}}
 
* {{pre-commit}}
 
* {{pre-commit}}
 +
 +
[[Category:GitHub Actions]]

Latest revision as of 06:30, 17 July 2024


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: