From eff43587abd384a43bb9853c3dac073370c63123 Mon Sep 17 00:00:00 2001 From: Adam Wolf Date: Thu, 23 Mar 2023 13:43:13 -0500 Subject: [PATCH] Automatically commit updated files to lib/ For #302 --- .github/workflows/compile.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 15c0155..ae11da7 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -28,7 +28,12 @@ jobs: run: | npm ci npm run clean compile + + - name: Update lib/ if necessary + git config user.name "lib/ helper" + git config user.email "actions@users.noreply.github.com" + git diff lib/ --quiet || (git add lib/ && git commit -m "Regenerate lib/" && git push") - name: Check for changes run: | - git diff --exit-code \ No newline at end of file + git diff --exit-code