Minify #441
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: Minify | |
on: | |
push: | |
branches: | |
- lyrics | |
workflow_run: | |
workflows: [Fetch Lyrics] | |
types: [completed] | |
workflow_dispatch: | |
jobs: | |
Minify_Action: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: lyrics | |
- uses: jojomatik/sync-branch@v1 | |
with: | |
source: 'lyrics' | |
target: 'minify' | |
strategy: 'force' | |
git_committer_name: Minify Action Bot | |
git_committer_email: [email protected] | |
# Use https://github.com/Josee9988/MinifyAllCli | |
- name: Minify Action | |
run: 'npx @josee9988/minifyall -d .' | |
- name: Git Auto Commit | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
branch: minify | |
commit_message: 'Github Action: Auto Minified HTML CSS JSON JSONC' | |
commit_user_name: Minify Action Bot # defaults to "GitHub Actions" | |
commit_author: Minify Action Bot <[email protected]> # defaults to author of the commit that triggered the run |