Add review approved user email #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile assets | |
on: | |
push: | |
branches-ignore: [ main, master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Compile LESS | |
uses: hivepress/action-compile-assets/less@v1.1.0 | |
with: | |
target: 'assets/css/*.less' | |
- name: Minify assets | |
uses: hivepress/action-minify-assets@v2.1 | |
- name: Commit changes | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git diff --quiet HEAD || (git commit -am "Compile assets" && git push) |