From 4a459c49b2c9dac59e3dd2a55aa0819a41aabce2 Mon Sep 17 00:00:00 2001 From: chenk Date: Tue, 13 Sep 2022 18:21:11 +0300 Subject: [PATCH] chore: opa format write (#945) Signed-off-by: chenk Signed-off-by: chenk --- .github/workflows/outdated-api-update.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/outdated-api-update.yaml b/.github/workflows/outdated-api-update.yaml index 57bcae834..f906934b8 100644 --- a/.github/workflows/outdated-api-update.yaml +++ b/.github/workflows/outdated-api-update.yaml @@ -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: