Closed ayodejiayodele closed 2 years ago
@ayodejiayodele a few errors. Can you update the PR summary with more details about what this PR is trying to accomplish?
RequestError [HttpError]: Not Found
at /home/runner/work/_actions/actions/github-script/v6/dist/index.js:4643:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:4971:16), <anonymous>:24:26)
at async main (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:5026:20) {
status: 404,
response: {
url: 'https://api.github.com/repos/samsmithnz/SamsFeatureFlags/actions/workflows/Feature%20Flags%20CI%2FCD/runs?status=success&per_page=50',
status: 404,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 25 Sep 2022 15:33:55 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3',
'x-github-request-id': '0542:2540:206EBF9:215AB5C:633074E2',
'x-ratelimit-limit': '1000',
'x-ratelimit-remaining': '999',
'x-ratelimit-reset': '[166](https://github.com/samsmithnz/deployment-frequency/actions/runs/3113591083/jobs/5064818989#step:4:167)4123635',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '1',
'x-xss-protection': '0'
},
data: {
message: 'Not Found',
documentation_url: 'https://docs.github.com/rest/reference/actions#list-workflow-runs'
}
},
request: {
method: 'GET',
url: 'https://api.github.com/repos/samsmithnz/SamsFeatureFlags/actions/workflows/Feature%20Flags%20CI%2FCD/runs?status=success&per_page=50',
headers: {
accept: 'application/vnd.github.-preview+json',
'user-agent': 'actions/github-script octokit-core.js/3.5.1 Node.js/16.13.0 (linux; x64)',
authorization: 'token [REDACTED]'
},
request: { agent: [Agent], hook: [Function: bound bound register] }
}
}
Error: Unhandled error: HttpError: Not Found
@samsmithnz thanks, I have now updated the description of the PR.
An error occurred because my context does not have access to the secret in the test parameter. If you run this in your own context, it should work. 🤞
If this PR is merged, it will add one more test job to the
workflow.yml
testing workflow.The test parameters are exactly the same as one of the other previous test jobs already existing in the same workflow file.
As mentioned, I have created a DORA metrics workflow for
Deployment Frequency
andLead Time for Changes
, which takes a single workflow as input and then generates a fine summary as in this example using the reusable workflow.