mirror of
https://github.com/lexmount/moli.git
synced 2026-09-23 00:01:25 +00:00
ci: remove migrated workflow legacy
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ $# -lt 1 || $# -gt 2 ]]; then
|
||||
echo "usage: $0 head|base [EXPECTED_REVISION]" >&2
|
||||
if [[ $# -ne 2 ]]; then
|
||||
echo "usage: $0 head|base EXPECTED_REVISION" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
side=$1
|
||||
expected_revision=$2
|
||||
case "$side" in
|
||||
head|base) ;;
|
||||
*) echo "invalid release side: $side" >&2; exit 2 ;;
|
||||
@@ -18,10 +19,8 @@ test -f "$archive"
|
||||
mkdir -p target/ci-bin
|
||||
tar -xzf "$archive" -C target/ci-bin
|
||||
(cd "target/ci-bin/$release_name" && sha256sum --check SHA256SUMS)
|
||||
if [[ $# -eq 2 ]]; then
|
||||
actual_revision=$(<"target/ci-bin/$release_name/revision.txt")
|
||||
if [[ "$actual_revision" != "$2" ]]; then
|
||||
echo "$side artifact revision mismatch: expected $2, got $actual_revision" >&2
|
||||
exit 1
|
||||
fi
|
||||
actual_revision=$(<"target/ci-bin/$release_name/revision.txt")
|
||||
if [[ "$actual_revision" != "$expected_revision" ]]; then
|
||||
echo "$side artifact revision mismatch: expected $expected_revision, got $actual_revision" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user