summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-11-25 12:09:53 -0700
committert <t@tjp.lol>2026-11-25 12:10:10 -0700
commit4277f7a356fde471d90f59b13a3eb653762cf611 (patch)
tree0cb1568aa8a9116de10af5de91a147748d5faa12 /scripts
parent205b1d26b5be40424eace945a73867bdfefe90ce (diff)
Keep mise.local.toml out of the release task testHEADv0.1.0main
Its CODEBERG_TOKEN replaced the test's fake tokens, so the fake server answered 401 and was sent the real token. Load only mise.toml.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test-release-task.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test-release-task.sh b/scripts/test-release-task.sh
index fa0da33..1d2c572 100644
--- a/scripts/test-release-task.sh
+++ b/scripts/test-release-task.sh
@@ -68,7 +68,8 @@ done
API="http://127.0.0.1:$(cat "$TMP/port")"
ASSETS="Write_Away-$VER-macos-arm64.zip SHA256SUMS"
-publish() { CODEBERG_TOKEN="${1:-fake}" WRITE_AWAY_API="$API" mise run release:publish; }
+# mise.local.toml would replace these tokens with the real one: load only mise.toml.
+publish() { MISE_OVERRIDE_CONFIG_FILENAMES=mise.toml CODEBERG_TOKEN="${1:-fake}" WRITE_AWAY_API="$API" mise run release:publish; }
expect() {
got="$(curl -fsS "$API/state")"
[ "$got" = "$1" ] || { echo "$2: got '$got', expected '$1'" >&2; exit 1; }