-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.02 KB
/
minify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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