From 2cb87c5a88b2ccd051f783e0d5c962111992aefc Mon Sep 17 00:00:00 2001 From: amquake Date: Sun, 24 Sep 2023 15:04:17 -0700 Subject: [PATCH] Add Github Action check to make sure template UI is unchanged (#918) --- .github/workflows/main.yml | 2 ++ .gitignore | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 749005b494..1331895037 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -299,6 +299,8 @@ jobs: python-version: 3.8 - name: Install wpiformat run: pip3 install wpiformat + - name: Check index.html not changed + run: git --no-pager diff --exit-code origin/master photon-server/src/main/resources/web/index.html - name: Run run: wpiformat - name: Check output diff --git a/.gitignore b/.gitignore index ca5a93289b..2bb8de0059 100644 --- a/.gitignore +++ b/.gitignore @@ -159,3 +159,4 @@ photonlib-cpp-examples/*/vendordeps/* */networktables.json *.sqlite +photon-server/src/main/resources/web/index.html