Skip to content

increase quality a bit #36

increase quality a bit

increase quality a bit #36

Workflow file for this run

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 }}