FIX: Merge minify.
This commit is contained in:
15
.github/workflows/minify.yml
vendored
15
.github/workflows/minify.yml
vendored
@@ -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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user