Skip to content

Commit ab30c56

Browse files
committed
Make minifying only on main branch
1 parent 0d93ea5 commit ab30c56

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/minify.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Auto-minify
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- main
36
jobs:
47
Minify:
58
runs-on: ubuntu-latest
@@ -15,5 +18,5 @@ jobs:
1518
- name: Auto committing minified files
1619
uses: stefanzweifel/git-auto-commit-action@v4
1720
with:
18-
commit_message: "Github Action: Auto Minified JS and CSS files"
21+
commit_message: "Auto Minified JS and CSS files"
1922
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)