fix(ci): release workflow for preview releases and pypi publish #12491
release-note.yml
on: pull_request
update_infrahub_release_draft
4s
Annotations
2 errors and 1 warning
update_infrahub_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '12146361618',
status: 422,
response: {
url: 'https://api.github.com/repos/opsmill/infrahub/releases/168084372',
status: 422,
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-length': '210',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Tue, 03 Dec 2024 18:58:08 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'contents=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': 'A985:F5029:614D720:C085C0A:674F54C0',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4987',
'x-ratelimit-reset': '1733254394',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '13',
'x-xss-protection': '0'
},
data: {
message: 'Validation Failed',
errors: [
{
resource: 'Release',
code: 'invalid',
field: 'target_commitish'
}
],
documentation_url: 'https://docs.github.com/rest/releases/releases#update-a-release',
status: '422'
}
},
request: {
method: 'PATCH',
url: 'https://api.github.com/repos/opsmill/infrahub/releases/168084372',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.18.0 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"## Changelog\\n\\n* No changes\\n","draft":true,"prerelease":false,"make_latest":"true","name":"infrahub-draft","tag_name":"infrahub-v","target_commitish":"refs/pull/5136/merge"}',
request: {}
},
event: {
id: '12146361618',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '8a70afb5da812bc47a67fdea325c596bdfb2e66b',
before: '8c8a7efdaefe069543733e64e75e4aeffb70b7b6',
number: 5136,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/118297816?v=4',
description: 'Infrahub by OpsMill',
events_url: 'https://api.github.com/orgs/opsmill/events',
hooks_url: 'https://api.github.com/orgs/opsmill/hooks',
id: 118297816,
issues_url: 'https://api.github.com/orgs/opsmill/issues',
login: 'opsmill',
members_url: 'https://api.github.com/orgs/opsmill/members{/member}',
node_id: 'O_kgDOBw0U2A',
public_members_url: 'https://api.github.com/orgs/opsmill/public_members{/member}',
repos_url: 'https://api.github.com/orgs/opsmill/repos',
url: 'https://api.github.com/orgs/opsmill'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/opsmill/infrahub/issues/5136/comments'
},
commits: {
href: 'https://api.github.com/repos/opsmill/infrahub/pulls/5136/commits'
},
html: { href: 'https://github.com/opsmill/infrahub/pull/5136' },
issue: {
href: 'https://api.github.com/repos/opsmill/infrahub/issues/5136'
},
review_comment: {
href: 'https://api.github.com/repos/opsmill/infrahub/pulls/comments{/number}'
},
rev
|
update_infrahub_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
at /home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:8462:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '12146361618',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '8a70afb5da812bc47a67fdea325c596bdfb2e66b',
before: '8c8a7efdaefe069543733e64e75e4aeffb70b7b6',
number: 5136,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/118297816?v=4',
description: 'Infrahub by OpsMill',
events_url: 'https://api.github.com/orgs/opsmill/events',
hooks_url: 'https://api.github.com/orgs/opsmill/hooks',
id: 118297816,
issues_url: 'https://api.github.com/orgs/opsmill/issues',
login: 'opsmill',
members_url: 'https://api.github.com/orgs/opsmill/members{/member}',
node_id: 'O_kgDOBw0U2A',
public_members_url: 'https://api.github.com/orgs/opsmill/public_members{/member}',
repos_url: 'https://api.github.com/orgs/opsmill/repos',
url: 'https://api.github.com/orgs/opsmill'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/opsmill/infrahub/issues/5136/comments'
},
commits: {
href: 'https://api.github.com/repos/opsmill/infrahub/pulls/5136/commits'
},
html: { href: 'https://github.com/opsmill/infrahub/pull/5136' },
issue: {
href: 'https://api.github.com/repos/opsmill/infrahub/issues/5136'
},
review_comment: {
href: 'https://api.github.com/repos/opsmill/infrahub/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/opsmill/infrahub/pulls/5136/comments'
},
self: {
href: 'https://api.github.com/repos/opsmill/infrahub/pulls/5136'
},
statuses: {
href: 'https://api.github.com/repos/opsmill/infrahub/statuses/8a70afb5da812bc47a67fdea325c596bdfb2e66b'
}
},
active_lock_reason: null,
additions: 151,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/1334310?v=4',
events_url: 'https://api.github.com/users/BeArchiTek/events{/privacy}',
followers_url: 'https://api.github.com/users/BeArchiTek/followers',
following_url: 'https://api.github.com/users/BeArchiTek/following{/other_user}',
gists_url: 'https://api.github.com/users/BeArchiTek/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/BeArchiTek',
id: 1334310,
login: 'BeArchiTek',
node_id: 'MDQ6VXNlcjEzMzQzMTA=',
organizations_url: 'https://api.github.com/users/BeArchiTek/orgs',
received_events_url: 'https://api.github.com/users/BeArchiTek/received_events',
repos_url: 'https://api.github.com/users/BeArchiTek/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/BeArchiTek/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/BeArchiTek/subscriptions',
type: 'User',
url: 'https://api.github.com/users/BeArchiTek',
user_view_type: 'public'
},
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/1334310?v=4',
events_url: 'https://api.github.com/users/BeArchiTek/events{/privacy}',
followers_url: 'https://api.github.com/users/BeArchiTek/followers',
following_url: 'https://api.github.com/users/BeArchiTek/following{/other_user}',
gists_url: 'https://api.github.com/users/BeArchiTek/gists{/gist_id}',
gravatar_id: '',
ht
|
update_infrahub_release_draft
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|