diff --git a/README.md b/README.md index 6b5119a..09fe695 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,9 @@ The `reporting` input controls where the Checkly result is reported: - `github-actions`: always wait in the GitHub Actions job and report through the CLI GitHub reporter and step summary. -Install the [Checkly GitHub App](https://github.com/apps/checkly) on the -repository to use detached GitHub Check reporting. +Install the [Checkly GitHub App](https://app.checklyhq.com/settings/account/integrations) +from your Checkly account integrations and grant it access to the repository to +use detached GitHub Check reporting. For `deployment_status` workflows, the action exposes `github.event.deployment_status.environment_url` as `ENVIRONMENT_URL` when that diff --git a/scripts/run.sh b/scripts/run.sh index 48bb430..7523732 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -CHECKLY_GITHUB_APP_URL="https://github.com/apps/checkly" +CHECKLY_GITHUB_INTEGRATION_URL="https://app.checklyhq.com/settings/account/integrations" trim() { local value="$1" @@ -462,10 +462,10 @@ else else clear_github_report_env if [[ "$reporting" == "github-check" ]]; then - echo "::error::Checkly GitHub Check reporting is unavailable (${github_report_reason}). Install the Checkly GitHub App on this repository to run detached and receive a Checkly GitHub Check: ${CHECKLY_GITHUB_APP_URL}" >&2 + echo "::error::Checkly GitHub Check reporting is unavailable (${github_report_reason}). Install the Checkly GitHub App on this repository to run detached and receive a Checkly GitHub Check: ${CHECKLY_GITHUB_INTEGRATION_URL}" >&2 exit 1 elif [[ "${GITHUB_ACTIONS:-}" == "true" ]]; then - echo "::warning::Checkly GitHub Check reporting is unavailable (${github_report_reason}). Reporting through GitHub Actions instead, so this job waits for the Checkly test session result. Install the Checkly GitHub App on this repository to run detached and receive a Checkly GitHub Check: ${CHECKLY_GITHUB_APP_URL}" + echo "::warning::Checkly GitHub Check reporting is unavailable (${github_report_reason}). Reporting through GitHub Actions instead, so this job waits for the Checkly test session result. Install the Checkly GitHub App on this repository to run detached and receive a Checkly GitHub Check: ${CHECKLY_GITHUB_INTEGRATION_URL}" fi fi fi @@ -584,7 +584,7 @@ if [[ "$github_check_requested" == "true" && "$github_report_available" == "true append_summary "GitHub Check reporting is enabled for this run." elif [[ "$github_check_requested" == "true" ]]; then append_summary "" - append_summary "GitHub Check reporting was unavailable (${github_report_reason}). This job reported through GitHub Actions and waited for the Checkly run to finish. [Install the Checkly GitHub App](${CHECKLY_GITHUB_APP_URL}) on this repository to run detached and receive a Checkly GitHub Check." + append_summary "GitHub Check reporting was unavailable (${github_report_reason}). This job reported through GitHub Actions and waited for the Checkly run to finish. [Install the Checkly GitHub App](${CHECKLY_GITHUB_INTEGRATION_URL}) on this repository to run detached and receive a Checkly GitHub Check." fi rm -f "$output_file" diff --git a/scripts/test.sh b/scripts/test.sh index 39f8ac4..2641d2b 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -88,7 +88,7 @@ fallback_command_output="$( assert_contains "$fallback_command_output" "checkly@8.15.0 test --reporter=github" assert_contains "$fallback_command_output" "Reporting: GitHub Actions (GitHub Check unavailable: github_app_not_connected)" -assert_contains "$fallback_command_output" "Install the Checkly GitHub App on this repository to run detached and receive a Checkly GitHub Check: https://github.com/apps/checkly" +assert_contains "$fallback_command_output" "Install the Checkly GitHub App on this repository to run detached and receive a Checkly GitHub Check: https://app.checklyhq.com/settings/account/integrations" assert_fails_with "Unsupported reporting 'banana'" env \ INPUT_COMMAND=test \