Skip to content

Commit 3336328

Browse files
committed
chore: stage verified rtichoke_viz v0.6.0 vendor
1 parent bc5027c commit 3336328

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Temporary vendor rtichoke_viz v0.6.0
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/static-decision-curve-browser
7+
paths:
8+
- .github/workflows/_temporary-vendor-v060.yml
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
vendor:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: feat/static-decision-curve-browser
20+
- name: Download and verify immutable release
21+
shell: bash
22+
run: |
23+
set -euo pipefail
24+
url="https://github.com/uriahf/rtichoke_viz/releases/download/v0.6.0/rtichoke-viz-0.6.0.tar.gz"
25+
expected="625613c7f692ff50b7757a27bb6caf84e311971bde92593141393dbd897af3a2"
26+
tmp="$(mktemp -d)"
27+
curl -fsSL "$url" -o "$tmp/rtichoke-viz-0.6.0.tar.gz"
28+
actual="$(sha256sum "$tmp/rtichoke-viz-0.6.0.tar.gz" | awk '{print $1}')"
29+
test "$actual" = "$expected"
30+
tar -xzf "$tmp/rtichoke-viz-0.6.0.tar.gz" -C "$tmp"
31+
vendor="src/rtichoke/_vendor/rtichoke_viz"
32+
rm -f "$vendor"/rtichoke-viz-*.tar.gz
33+
cp "$tmp/rtichoke-viz-0.6.0.tar.gz" "$vendor/"
34+
cp "$tmp/rtichoke-viz.js" "$vendor/"
35+
cp "$tmp/rtichoke-viz.css" "$vendor/"
36+
cp "$tmp/rtichoke-viz.schema.json" "$vendor/"
37+
cp "$tmp/rtichoke-viz-v2.schema.json" "$vendor/"
38+
cat > "$vendor/VENDORED_FROM" <<'EOF'
39+
repository=https://github.com/uriahf/rtichoke_viz
40+
release=v0.6.0
41+
source_commit=3abb3f07a598c3e22d5362a3f88e52bb6b52b083
42+
archive=rtichoke-viz-0.6.0.tar.gz
43+
sha256=625613c7f692ff50b7757a27bb6caf84e311971bde92593141393dbd897af3a2
44+
EOF
45+
grep -qx 'version=0.6.0' "$tmp/MANIFEST"
46+
grep -qx 'commit=3abb3f07a598c3e22d5362a3f88e52bb6b52b083' "$tmp/MANIFEST"
47+
grep -q 'renderDecisionCurveV2' "$vendor/rtichoke-viz.js"
48+
if grep -q 'renderInterventionsAvoidedV2' "$vendor/rtichoke-viz.js"; then
49+
echo 'unexpected Interventions Avoided v2 export in v0.6.0' >&2
50+
exit 1
51+
fi
52+
- name: Commit vendored payload
53+
shell: bash
54+
run: |
55+
set -euo pipefail
56+
git config user.name github-actions[bot]
57+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
58+
git add src/rtichoke/_vendor/rtichoke_viz
59+
git diff --cached --quiet && exit 0
60+
git commit -m "Vendor immutable rtichoke_viz v0.6.0"
61+
git push origin HEAD:feat/static-decision-curve-browser

0 commit comments

Comments
 (0)