diff --git a/__test__/integration-tests.sh b/__test__/integration-tests.sh index 0fcaa54..c1bb41f 100755 --- a/__test__/integration-tests.sh +++ b/__test__/integration-tests.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash set -euo pipefail +set -xv IMAGE="cpr-integration-tests:latest" ARG1=${1:-} diff --git a/dist/index.js b/dist/index.js index a8d5770..bcde6e6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1294,10 +1294,14 @@ class GitHubHelper { static determineApiUrl(hostname) { return __awaiter(this, void 0, void 0, function* () { if (hostname === 'github.com') { - return "https://api.github.com"; + return 'https://api.github.com'; } const baseUrl = `https://${hostname}`; - const possiblePaths = ['/api/v4/version', '/api/forgejo/v1/version', '/api/v1/version']; + const possiblePaths = [ + '/api/v4/version', + '/api/forgejo/v1/version', + '/api/v1/version' + ]; for (const path of possiblePaths) { try { const url = `${baseUrl}${path}`;