From e8f4ed897564e08a9f0575ecc7ade19fdf1f422c Mon Sep 17 00:00:00 2001 From: Robert Jelic Date: Sun, 9 Feb 2025 14:40:45 +0100 Subject: [PATCH] Add workflow step to commit combined Lua file and update commit message for minified file --- .github/workflows/minify.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/minify.yml b/.github/workflows/minify.yml index e860bde..234fc62 100644 --- a/.github/workflows/minify.yml +++ b/.github/workflows/minify.yml @@ -52,6 +52,16 @@ jobs: exit 1 fi + - name: Commit combined Lua file + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add release/project.lua + git commit -m 'Combine Lua files into a single project.lua' + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Minify combined Lua file run: | echo "Minifying project.lua" @@ -68,7 +78,7 @@ jobs: exit 1 fi - - name: Commit minified file + - name: Commit minified Lua file run: | git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com'