Skip to content

Commit

Permalink
chore(pre-commit,doc): upgrade pre-commit hooks
Browse files Browse the repository at this point in the history
Fix README.md
  • Loading branch information
massimoschembri committed Jan 4, 2024
1 parent 24ab06c commit 7afeac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
rev: "v4.5.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -11,7 +11,7 @@ repos:
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md,txt,gotmpl']
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.22.0"
rev: "0.27.3"
hooks:
- id: check-dependabot
- id: check-github-actions
Expand Down
28 changes: 3 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,10 @@ Checkout the ref (or latest) upstream version and apply one or more patch files
Perform all checks on pull requests

```yaml
name: Checkout and Patch

on:
pull_request:
types: [opened, edited, synchronize, reopened]
paths:
- 'containers/**'
jobs:
build:
runs-on: self-hosted
steps:
- uses: draios/infra-action-patch-upstream@v1
- uses: draios/infra-action-patch-upstream@v0.0.6
with:
upstream_repo: sysdiglabs/charts
local_patch_dir: tests/sysdiglabs/charts
Expand All @@ -52,18 +44,11 @@ jobs:
Perform all checks on pull requests and remove files from the upstream repository
```yaml
name: Checkout and Patch

on:
pull_request:
types: [opened, edited, synchronize, reopened]
paths:
- 'containers/**'
jobs:
build:
runs-on: self-hosted
steps:
- uses: draios/infra-action-patch-upstream@v1
- uses: draios/infra-action-patch-upstream@v0.0.6
with:
upstream_repo: sysdiglabs/charts
local_patch_dir: tests/sysdiglabs/charts
Expand All @@ -76,18 +61,11 @@ jobs:
Perform all checks on pull requests and copy some files from the upstream repository to a custom location
```yaml
name: Checkout and Patch

on:
pull_request:
types: [opened, edited, synchronize, reopened]
paths:
- 'containers/**'
jobs:
build:
runs-on: self-hosted
steps:
- uses: draios/infra-action-patch-upstream@v1
- uses: draios/infra-action-patch-upstream@v0.0.6
with:
upstream_repo: sysdiglabs/charts
local_patch_dir: tests/sysdiglabs/charts
Expand Down

0 comments on commit 7afeac9

Please sign in to comment.