Skip to content

Commit

Permalink
chore: opa format write (#945)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>

Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan authored Sep 13, 2022
1 parent 341d51e commit 4a459c4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/outdated-api-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ jobs:
sudo mv ./opa /usr/local/bin
- name: OPA Format
run: |
files=$(opa fmt --list . | grep -v vendor || true)
if [ -n "$files" ]; then
echo "=== The following files are not formatted ==="
echo "$files"
exit 1
fi
opa fmt -w . | grep -v vendor || true
- name: commit and push updated outdated-api policy when changes found
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit 4a459c4

Please sign in to comment.