diff options
| author | t <t@tjp.lol> | 2026-11-25 12:09:53 -0700 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-11-25 12:10:10 -0700 |
| commit | 4277f7a356fde471d90f59b13a3eb653762cf611 (patch) | |
| tree | 0cb1568aa8a9116de10af5de91a147748d5faa12 | |
| parent | 205b1d26b5be40424eace945a73867bdfefe90ce (diff) | |
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.
| -rw-r--r-- | scripts/test-release-task.sh | 3 |
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; } |
