-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow non-"build" name #3
Comments
have made a new version If it still does not work would you mind doing one run using @master as the version? |
Indeed 1.2 isn't there yet:
So I tried with
|
Could it be that what you get in I'm thinking that the code might be currently comparing these two? |
Although, I'm not sure why there wasn't any output logged from: console.log(JSON.stringify(res.data.check_runs)) (as you see from the next-to-last line logged with |
Think I can see the cause. Is because is a pull request. Not just a push. Will have a look later. |
@ashley-taylor Here's when I ran this on push (from my last comment above): [
{
"id": 720625993,
"node_id": "MDg6Q2hlY2tSdW43MjA2MjU5OTM=",
"head_sha": "129bd843e23bbf9289e88ba6a018be9ce36b09e9",
"external_id": "cfc9dbcb-a267-518e-5867-d1492fc1c90e",
"url": "https://api.github.com/repos/my-org/example-service/check-runs/720625993",
"html_url": "https://github.com/my-org/example-service/runs/720625993",
"details_url": "https://github.com/my-org/example-service/runs/720625993",
"status": "completed",
"conclusion": "success",
"started_at": "2020-05-29T14:12:18Z",
"completed_at": "2020-05-29T14:12:19Z",
"output": {
"title": null,
"summary": null,
"text": null,
"annotations_count": 0,
"annotations_url": "https://api.github.com/repos/my-org/example-service/check-runs/720625993/annotations"
},
"name": "Delete Artifacts",
"check_suite": {
"id": 733437370
},
"app": {
"id": 15368,
"slug": "github-actions",
"node_id": "MDM6QXBwMTUzNjg=",
"owner": {
"login": "github",
"id": 9919,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
"avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github",
"html_url": "https://github.com/github",
"followers_url": "https://api.github.com/users/github/followers",
"following_url": "https://api.github.com/users/github/following{/other_user}",
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
"organizations_url": "https://api.github.com/users/github/orgs",
"repos_url": "https://api.github.com/users/github/repos",
"events_url": "https://api.github.com/users/github/events{/privacy}",
"received_events_url": "https://api.github.com/users/github/received_events",
"type": "Organization",
"site_admin": false
},
"name": "GitHub Actions",
"description": "Automate your workflow from idea to production",
"external_url": "https://help.github.com/en/actions",
"html_url": "https://github.com/apps/github-actions",
"created_at": "2018-07-30T09:30:17Z",
"updated_at": "2019-12-10T19:04:12Z",
"permissions": {
"actions": "write",
"checks": "write",
"contents": "write",
"deployments": "write",
"issues": "write",
"metadata": "read",
"packages": "write",
"pages": "write",
"pull_requests": "write",
"repository_hooks": "write",
"repository_projects": "write",
"security_events": "write",
"statuses": "write",
"vulnerability_alerts": "read"
},
"events": [
"check_run",
"check_suite",
"create",
"delete",
"deployment",
"deployment_status",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"milestone",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"status",
"watch"
]
},
"pull_requests": [
{
"url": "https://api.github.com/repos/my-org/example-service/pulls/26",
"id": 424923173,
"number": 26,
"head": {
"ref": "github-actions-self-hosted-junit-annotations",
"sha": "129bd843e23bbf9289e88ba6a018be9ce36b09e9",
"repo": {
"id": 215329298,
"url": "https://api.github.com/repos/my-org/example-service",
"name": "example-service"
}
},
"base": {
"ref": "master",
"sha": "62af8ed9862efe1979b8e075128c6f84b86ff3ff",
"repo": {
"id": 215329298,
"url": "https://api.github.com/repos/my-org/example-service",
"name": "example-service"
}
}
}
]
},
{
"id": 720625955,
"node_id": "MDg6Q2hlY2tSdW43MjA2MjU5NTU=",
"head_sha": "129bd843e23bbf9289e88ba6a018be9ce36b09e9",
"external_id": "87183d11-15b6-51be-c26d-2b47679083ca",
"url": "https://api.github.com/repos/my-org/example-service/check-runs/720625955",
"html_url": "https://github.com/my-org/example-service/runs/720625955",
"details_url": "https://github.com/my-org/example-service/runs/720625955",
"status": "in_progress",
"conclusion": null,
"started_at": "2020-05-29T14:12:15Z",
"completed_at": null,
"output": {
"title": null,
"summary": null,
"text": null,
"annotations_count": 0,
"annotations_url": "https://api.github.com/repos/my-org/example-service/check-runs/720625955/annotations"
},
"name": "Build and Test (self-hosted, 2.13.2, [email protected])",
"check_suite": {
"id": 733437335
},
"app": {
"id": 15368,
"slug": "github-actions",
"node_id": "MDM6QXBwMTUzNjg=",
"owner": {
"login": "github",
"id": 9919,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
"avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github",
"html_url": "https://github.com/github",
"followers_url": "https://api.github.com/users/github/followers",
"following_url": "https://api.github.com/users/github/following{/other_user}",
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
"organizations_url": "https://api.github.com/users/github/orgs",
"repos_url": "https://api.github.com/users/github/repos",
"events_url": "https://api.github.com/users/github/events{/privacy}",
"received_events_url": "https://api.github.com/users/github/received_events",
"type": "Organization",
"site_admin": false
},
"name": "GitHub Actions",
"description": "Automate your workflow from idea to production",
"external_url": "https://help.github.com/en/actions",
"html_url": "https://github.com/apps/github-actions",
"created_at": "2018-07-30T09:30:17Z",
"updated_at": "2019-12-10T19:04:12Z",
"permissions": {
"actions": "write",
"checks": "write",
"contents": "write",
"deployments": "write",
"issues": "write",
"metadata": "read",
"packages": "write",
"pages": "write",
"pull_requests": "write",
"repository_hooks": "write",
"repository_projects": "write",
"security_events": "write",
"statuses": "write",
"vulnerability_alerts": "read"
},
"events": [
"check_run",
"check_suite",
"create",
"delete",
"deployment",
"deployment_status",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"milestone",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"status",
"watch"
]
},
"pull_requests": []
}
] |
Does that give any ideas on what the problem is? |
I have not forgotten about this. |
another example here -> https://github.com/berty/berty/pull/2102/checks?check_run_id=795436874 |
can you try the latest version 1.2 |
@ashley-taylor we're just tried Thanks for fixing! |
I ran into this when trying out this action:
Looking at the code of this action, could it be because it assumes the "check" is expected to be named "
build
"?https://github.com/ashley-taylor/junit-report-annotations-action/blob/master/index.js#L88
The text was updated successfully, but these errors were encountered: