Skip to content

Commit 89d571e

Browse files
committed
chore: diagnose rtichoke_viz release checksum
1 parent 92b607d commit 89d571e

1 file changed

Lines changed: 6 additions & 24 deletions

File tree

‎.github/workflows/temp-vendor-viz-050.yml‎

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,14 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
ref: feature/browser-report-viz-0.5.0
21-
- name: Download and verify immutable release
21+
- name: Download and inspect immutable release
2222
shell: bash
2323
run: |
2424
set -euo pipefail
2525
url='https://github.com/uriahf/rtichoke_viz/releases/download/v0.5.0/rtichoke-viz-0.5.0.tar.gz'
26-
expected='eafb33b50277605e5012a6289cd280b7e5f232ecccd462a94581113818678401'
26+
recorded='eafb33b50277605e5012a6289cd280b7e5f232ecccd462a94581113818678401'
2727
curl -fL "$url" -o /tmp/rtichoke-viz-0.5.0.tar.gz
28-
echo "$expected /tmp/rtichoke-viz-0.5.0.tar.gz" | sha256sum -c -
29-
rm -rf /tmp/rtichoke-viz-0.5.0
30-
mkdir -p /tmp/rtichoke-viz-0.5.0
31-
tar -xzf /tmp/rtichoke-viz-0.5.0.tar.gz -C /tmp/rtichoke-viz-0.5.0
32-
vendor='src/rtichoke/_vendor/rtichoke_viz'
33-
rm -f "$vendor"/rtichoke-viz-*.tar.gz
34-
cp /tmp/rtichoke-viz-0.5.0.tar.gz "$vendor/rtichoke-viz-0.5.0.tar.gz"
35-
cp "$(find /tmp/rtichoke-viz-0.5.0 -name rtichoke-viz.js -print -quit)" "$vendor/rtichoke-viz.js"
36-
cp "$(find /tmp/rtichoke-viz-0.5.0 -name rtichoke-viz.css -print -quit)" "$vendor/rtichoke-viz.css"
37-
cp "$(find /tmp/rtichoke-viz-0.5.0 -name rtichoke-viz.schema.json -print -quit)" "$vendor/rtichoke-viz.schema.json"
38-
cp "$(find /tmp/rtichoke-viz-0.5.0 -name rtichoke-viz-v2.schema.json -print -quit)" "$vendor/rtichoke-viz-v2.schema.json"
39-
cp "$(find /tmp/rtichoke-viz-0.5.0 -name MANIFEST -print -quit)" "$vendor/MANIFEST"
40-
- name: Commit vendored artifact
41-
shell: bash
42-
run: |
43-
set -euo pipefail
44-
git config user.name 'github-actions[bot]'
45-
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
46-
git add src/rtichoke/_vendor/rtichoke_viz
47-
git diff --cached --quiet && exit 0
48-
git commit -m 'chore: vendor rtichoke_viz v0.5.0'
49-
git push origin HEAD:feature/browser-report-viz-0.5.0
28+
actual="$(sha256sum /tmp/rtichoke-viz-0.5.0.tar.gz | cut -d' ' -f1)"
29+
echo "recorded_sha256=$recorded"
30+
echo "actual_sha256=$actual"
31+
test "$actual" = "$recorded"

0 commit comments

Comments
 (0)