diff --git a/.github/workflows/sentry_dogfood.yml b/.github/workflows/sentry_dogfood.yml index 14dcd95c..c0df7a37 100644 --- a/.github/workflows/sentry_dogfood.yml +++ b/.github/workflows/sentry_dogfood.yml @@ -20,10 +20,24 @@ jobs: with: fetch-depth: 0 - - name: Install Sentry CLI - uses: getsentry/action-setup-cli@70d7e587b84c2e78cf4d37cd33d7b74fb3729c1b # v1 - with: - version: "3.4.1" + - name: Install Sentry CLI (pinned nightly) + shell: bash + env: + SENTRY_CLI_VERSION: "0.48.0-dev.1792191634" + SENTRY_CLI_SHA256: "000573cae3395cd9be6b1fd08ac2c18067d5c99c129c614dececc1fc3bd29fd8" + run: | + INSTALL_DIR="${RUNNER_TEMP}/sentry-bin" + mkdir -p "${INSTALL_DIR}" + GHCR_TOKEN=$(curl -fsS "https://ghcr.io/token?scope=repository:getsentry/toolkit:pull" | jq -er '.token') + curl -fsSL --proto '=https' --proto-redir '=https' \ + -H "Authorization: Bearer ${GHCR_TOKEN}" \ + "https://ghcr.io/v2/getsentry/toolkit/blobs/sha256:${SENTRY_CLI_SHA256}" \ + -o "${INSTALL_DIR}/sentry.gz" + printf '%s %s\n' "${SENTRY_CLI_SHA256}" "${INSTALL_DIR}/sentry.gz" | shasum -a 256 -c - + gunzip -c "${INSTALL_DIR}/sentry.gz" > "${INSTALL_DIR}/sentry" + chmod +x "${INSTALL_DIR}/sentry" + test "$("${INSTALL_DIR}/sentry" --version)" = "${SENTRY_CLI_VERSION}" + echo "${INSTALL_DIR}" >> "${GITHUB_PATH}" - name: Unzip iOS app run: | @@ -35,18 +49,20 @@ jobs: env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_SENTRY_AUTH_TOKEN }} run: | - sentry-cli --log-level=debug build upload \ + sentry build upload \ ./HackerNews.xcarchive \ --org sentry \ --project launchpad-test-ios \ - --build-configuration Release + --build-configuration Release \ + --log-level debug - name: Upload Android app to Sentry env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_SENTRY_AUTH_TOKEN }} run: | - sentry-cli --log-level=debug build upload \ + sentry build upload \ ./tests/_fixtures/android/hn.aab \ --org sentry \ --project launchpad-test-android \ - --build-configuration Release + --build-configuration Release \ + --log-level debug