FIX: Adding pull request feature minify.
This commit is contained in:
11
.github/workflows/minify.yml
vendored
11
.github/workflows/minify.yml
vendored
@@ -24,7 +24,10 @@ jobs:
|
|||||||
- run: for i in `find . -name "*.html" -type f`; do html-minifier --remove-comments --collapse-whitespace $i -o $i; done
|
- run: for i in `find . -name "*.html" -type f`; do html-minifier --remove-comments --collapse-whitespace $i -o $i; done
|
||||||
|
|
||||||
# Push changes to `build` branch
|
# Push changes to `build` branch
|
||||||
- run: git config user.name ${{ github.actor }}
|
- name: Create report file
|
||||||
- run: git config user.email ${{ github.actor }}@user.noreply.github.com
|
run: date +%s > report.txt
|
||||||
- run: git commit -am 'Automated minify of ${{ github.sha }}'
|
|
||||||
- run: git push --force -u origin main:build
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v4
|
||||||
|
with:
|
||||||
|
base: build
|
||||||
|
|||||||
Reference in New Issue
Block a user