This repository was archived by the owner on Feb 8, 2024. It is now read-only.
Description I am trying to use the new API to trigger a pipeline by tag or commit and neither seem to work. It looks like the API doesn't support passing a commit/revision but it looks like tag is supported:
https://github.com/CircleCI-Public/api-preview-docs/blob/master/specs/v2-sketch.yaml#L750
However when I try to trigger via a tag, it doesn't end up triggering any workflows.
Here's the request body being sent
{
parameters : {
'run-lint' : false ,
'run-build-linux' : false ,
'run-build-mac' : false ,
'upload-to-s3' : '1' ,
'run-linux-x64-publish' : true
} ,
tag : 'v8.0.0-nightly.20191016'
}
And the response I get back:
{
workflows : [ ] ,
id : '84f3fc12-6fbf-47ac-85ea-9c977f071b39' ,
errors : [ ] ,
project_slug : 'gh/electron/electron' ,
updated_at : '2019-10-17T14:09:40.081Z' ,
number : 15408 ,
state : 'created' ,
created_at : '2019-10-17T14:09:40.081Z' ,
trigger : { received_at : '2019-10-17T14:09:40.056Z' ,
type : 'api' ,
actor :
{
login : 'jkleinsc' ,
avatar_url : 'https://avatars0.githubusercontent.com/u/609052?v=4'
}
} ,
vcs :
{ origin_repository_url : 'https://github.com/electron/electron' ,
target_repository_url : 'https://github.com/electron/electron' ,
revision : 'e06b0aa73b91ef90a40616f2ad4554117c69d7ee' ,
provider_name : 'GitHub' ,
tag : 'v8.0.0-nightly.20191016'
}
} Reactions are currently unavailable
I am trying to use the new API to trigger a pipeline by tag or commit and neither seem to work. It looks like the API doesn't support passing a commit/revision but it looks like tag is supported:
https://github.com/CircleCI-Public/api-preview-docs/blob/master/specs/v2-sketch.yaml#L750
However when I try to trigger via a tag, it doesn't end up triggering any workflows.
Here's the request body being sent
And the response I get back: