fix censorStyle removal #37
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: Convert Scripts to Bookmarklets | |
on: push | |
jobs: | |
bookmarkletify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Minify Scripts | |
uses: nizarmah/auto-minify@v2.1 | |
with: | |
output: min | |
js_engine: uglify-js # removes "javascript:" label unlike babel | |
- name: Delete Newlines | |
uses: jacobtomlinson/gha-find-replace@v2 | |
with: | |
find: "\\n\\s*" | |
replace: " " | |
include: min/** | |
- name: Percent-Encode Percents | |
uses: jacobtomlinson/gha-find-replace@v2 | |
with: | |
find: "%" | |
replace: "%25" | |
include: min/** | |
regex: false | |
- name: Prepend Labels | |
uses: jacobtomlinson/gha-find-replace@v2 | |
with: | |
find: "(.*)" | |
replace: "javascript:krazete:$1" # credit | |
include: min/** | |
- name: Commit Bookmarklets | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Github Action: Convert Scripts to Bookmarklets" | |
branch: ${{ github.ref }} |