adjust pages hard code endpoint + fix artifact look up

This commit is contained in:
yimysty
2022-08-04 15:43:58 -07:00
parent 38e42fe573
commit 3e976523d7
10 changed files with 61 additions and 29 deletions

View File

@@ -21,7 +21,7 @@ const {Deployment} = require('./deployment')
async function emitTelemetry() {
// All variables we need from the runtime are set in the Deployment constructor
const deployment = new Deployment()
const telemetryUrl = `https://api.github.com/repos/${deployment.repositoryNwo}/pages/telemetry`
const telemetryUrl = `${deployment.githubApiUrl}/repos/${deployment.repositoryNwo}/pages/telemetry`
core.info(`Sending telemetry for run id ${deployment.workflowRun}`)
await axios
.post(