Skip to content

Commit

Permalink
Auto-fix schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Sep 5, 2024
1 parent 1d281d4 commit c46974c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ jobs:

# Get latest version from https://autofix.ci/setup
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a

autofix-schemas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update schemas
run: ./devtools/update_schemas.sh

# Get latest version from https://autofix.ci/setup
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
10 changes: 10 additions & 0 deletions devtools/update_schemas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
command -v shellcheck >/dev/null && shellcheck "$0"

for contract_dir in contracts/*/; do
(
cd "$contract_dir"
cargo schema
)
done

0 comments on commit c46974c

Please sign in to comment.