From 0ee64c18e0b9b2b63f47de633903f331f5a5022a Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 5 Nov 2024 11:51:39 +0000 Subject: [PATCH] chore: Add restyled workflow in common CI actions. --- .github/workflows/ci.yml | 2 +- .github/workflows/common-ci.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e1b734..3fe728d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,4 +6,4 @@ on: jobs: common: - uses: TokTok/ci-tools/.github/workflows/common-ci.yml@master + uses: ./.github/workflows/common-ci.yml diff --git a/.github/workflows/common-ci.yml b/.github/workflows/common-ci.yml index 760e282..c045888 100644 --- a/.github/workflows/common-ci.yml +++ b/.github/workflows/common-ci.yml @@ -14,3 +14,16 @@ jobs: chmod +x buildifier - name: Check run: ./buildifier --lint=warn --warnings=all -mode diff $(find . -type f -name "WORKSPACE" -or -name "BUILD.*") + + restyled: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - uses: restyled-io/actions/setup@v4 + - id: restyler + uses: restyled-io/actions/run@v4 + with: + fail-on-differences: true