Skip to content

Commit

Permalink
👷 Automatically update the valid ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
ouvreboite committed Jun 14, 2024
1 parent ce93acd commit 4628206
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/poltergust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
- name: Test the valid example ruleset
run: npx poltergust ./examples/valid

- name: Commit updated valid ruleset
run: |
git config --global user.name 'poltergust'
git config --global user.email '[email protected]'
git commit -am "Auto-update valid ruleset"
git push
build-and-test-invalid-example:
needs: build-and-test-valid-example
runs-on: ubuntu-latest
Expand Down
19 changes: 0 additions & 19 deletions examples/invalid/spectral.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/valid/rules1.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ servers:
```yaml
#👻-rule
base-path-must-start-with-slash:
description: Base path must start with /.
description: Base path must be relative (start with a /)
message: "{{description}}. But was {{value}}."
given: $.servers[*]
severity: error
Expand Down

0 comments on commit 4628206

Please sign in to comment.