-
Notifications
You must be signed in to change notification settings - Fork 98
32 lines (32 loc) · 1.06 KB
/
up.yml
File metadata and controls
32 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-FileCopyrightText: Copyright (c) 2015-2026 Yegor Bugayenko
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
name: up
'on':
push:
branches:
- master
jobs:
up:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- run: |-
git fetch --tags --force
latest=$(git tag --sort=creatordate | tail -1)
sed -E -i "s/tacit-css@[0-9.]+/tacit-css@${latest}/g" README.md
sri=$(curl -fsSL --compressed "https://cdn.jsdelivr.net/npm/tacit-css@${latest}/dist/tacit-css.min.css" \
| openssl dgst -sha384 -binary | openssl base64 -A)
esc=$(printf '%s' "$sri" | sed 's/[&]/\\&/g')
sed -E -i "s|integrity=\"[^\"]*\"|integrity=\"sha384-$esc\"|g" README.md
- uses: peter-evans/create-pull-request@v8
with:
sign-commits: true
commit-message: 'new version in README'
delete-branch: true
title: 'New version in README'
assignees: yegor256
branch: up
base: master