Skip to content

Commit

Permalink
Fix: Changed Action Steps
Browse files Browse the repository at this point in the history
Replaced actions/ by nizarmah/

Also added auto committing done by @stefanzweifel
  • Loading branch information
nizarmah committed Mar 7, 2020
1 parent d1b7788 commit 220ce2f
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ Minifies JS and CSS files with UglifyJS and CleanCSS
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so auto-minify job can access it
- uses: actions/checkout@v2
- name: Auto Minify
uses: actions/auto-minify@v1
uses: nizarmah/auto-minify@v1
# Auto commits minified files to the repository
# Ignore it if you don't want to commit the files to the repository
- name: Auto committing minified files
uses: stefanzweifel/[email protected]
with:
commit_message: "Github Action: Auto Minified JS and CSS files"
branch: ${{ github.ref }}
```

##### Specifying output directory
Expand All @@ -30,9 +38,17 @@ steps:
- uses: actions/checkout@v2
- name: Auto Minify
uses: actions/auto-minify@v1
uses: nizarmah/auto-minify@v1
with:
directory: 'js'
# Auto commits minified files to the repository
# Ignore it if you don't want to commit the files to the repository
- name: Auto committing minified files
uses: stefanzweifel/[email protected]
with:
commit_message: "Github Action: Auto Minified JS and CSS files"
branch: ${{ github.ref }}
```

##### With different output directory
Expand All @@ -43,10 +59,18 @@ steps:
- uses: actions/checkout@v2
- name: Auto Minify
uses: actions/auto-minify@v1
uses: nizarmah/auto-minify@v1
with:
directory: 'js'
output: 'mini_js'
# Auto commits minified files to the repository
# Ignore it if you don't want to commit the files to the repository
- name: Auto committing minified files
uses: stefanzweifel/[email protected]
with:
commit_message: "Github Action: Auto Minified JS and CSS files"
branch: ${{ github.ref }}
```

> Please note that you will have to `commit` the changed files using a different `action`

0 comments on commit 220ce2f

Please sign in to comment.