From c93d071f193d6f6a9a5627b74f1f933d76db05da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 10 Jul 2024 09:45:42 +0200 Subject: [PATCH] Auto apply c2cciutils-checks fix --- .github/workflows/main.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index dca002626..928a0264f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -38,6 +38,18 @@ jobs: - name: Checks run: c2cciutils-checks + - run: c2cciutils-checks --fix + if: failure() + - run: git diff --patch > /tmp/c2cciutils-checks.patch || true + if: failure() + - uses: actions/upload-artifact@v3 + with: + name: Fix c2cciutils-checks.patch + path: /tmp/c2cciutils-checks.patch + retention-days: 1 + if: failure() + - run: git reset --hard + if: failure() - run: sudo npm install --global json-schema-spell-checker - run: json-schema-spell-checker --fields=description,title --spelling=.spelling --ignore-numbers tilecloud_chain/schema.json