File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1414 - run : |-
1515 git fetch --tags --force && \
1616 latest=$(git tag --sort=creatordate | tail -1) && \
17- sed -E -i "s/tacit-css@[0-9.]+/tacit-css@${latest}/g" README.md
17+ sed -E -i "s/tacit-css@[0-9.]+/tacit-css@${latest}/g" README.md && \
18+ sri=$(curl -fsSL --compressed "https://cdn.jsdelivr.net/npm/tacit-css@${latest}/dist/tacit-css.min.css" \
19+ | openssl dgst -sha384 -binary | openssl base64 -A)
20+ sri_esc=$(printf '%s' "$sri" | sed 's/[&]/\\&/g') && \
21+ sed -E -i '/cdn\.jsdelivr\.net\/npm\/tacit-css@[0-9]+\.[0-9]+\.[0-9]+\/dist\/tacit-css\.min\.css/{
22+ s/[[:space:]]+integrity="[^"]*"//g; s/[[:space:]]+crossorigin="[^"]*"//g;
23+ s|(tacit-css\.min\.css"[^>/]*)(\s*/?>)|\1 integrity="sha384-'"$sri_esc"'" crossorigin="anonymous"\2|;
24+ }' README.md
1825 - uses : peter-evans/create-pull-request@v7
1926 with :
2027 sign-commits : true
You can’t perform that action at this time.
0 commit comments