FIX: Merge minify.

This commit is contained in:
MajorDroolz
2022-12-20 03:48:59 -05:00
parent ed9f766a41
commit 6a9086cf34

View File

@@ -12,6 +12,9 @@ jobs:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
token: ${{ secret.SECRET }}
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '16'
@@ -19,9 +22,7 @@ jobs:
- name: Install dependencies. - name: Install dependencies.
run: npm i -g terser csso-cli html-minifier run: npm i -g terser csso-cli html-minifier
- run: | - run: git checkout -b build
git branch temp
git checkout temp
- name: Minify files. - name: Minify files.
run: | run: |
@@ -30,9 +31,7 @@ jobs:
for i in `find . -name "*.html" -type f`; do html-minifier --remove-comments --collapse-whitespace $i -o $i; done for i in `find . -name "*.html" -type f`; do html-minifier --remove-comments --collapse-whitespace $i -o $i; done
- run: | - run: |
git config --global user.email "you@example.com" git config user.email "noreply@github.com"
git config --global user.name "Your Name" git config user.name "github-actions"
git commit -am "STUFF" git commit -am "STUFF"
- run: | - run: git push -f --set-upstream origin build
git push -f --set-upstream origin temp
- run: gh pr create --title "Pull request title" --body "Pull request body" --base "build"