diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 47dc8fd7..0cbca31b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -36,6 +36,8 @@ jobs: target_ci key: rust3-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }} - name: build + env: + TELEPROBE_TOKEN: ${{ secrets.TELEPROBE_TOKEN }} run: | curl -L -o /usr/local/bin/cargo-batch https://github.com/embassy-rs/cargo-batch/releases/download/batch-0.3.0/cargo-batch chmod +x /usr/local/bin/cargo-batch diff --git a/ci.sh b/ci.sh index 2c46dcc6..6d906f5f 100755 --- a/ci.sh +++ b/ci.sh @@ -160,12 +160,8 @@ function run_elf { } if [[ -z "${TELEPROBE_TOKEN-}" ]]; then - if [[ -z "${ACTIONS_ID_TOKEN_REQUEST_TOKEN-}" ]]; then - echo No teleprobe token found, skipping running HIL tests - exit - fi - - export TELEPROBE_TOKEN=$(curl -sS -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL" | jq -r '.value') + echo No teleprobe token found, skipping running HIL tests + exit fi for board in $(ls out/tests); do