CircleCI-Public / trigger-circleci-pipeline-action

Trigger a CircleCI pipeline from any GitHub Actions event.
https://github.com/marketplace/actions/trigger-circleci-pipeline
47 stars 43 forks source link

Bug: Getting error code 400 when calling circleci from github actions #66

Open fsintegrations opened 1 year ago

fsintegrations commented 1 year ago

Is there an existing issue for this?

Current behavior

On release publish we are triggering circleci from github actions, But sometime we are getting error code 400 when calling circleci from github actions, this is occurring randomly not every time, After recreating the release it works fine.

This is happening because we are getting Triggering branch as empty string even though we trigger this github action on release publish, After republishing the release we are getting Triggering tag with tag value and works as expected.

Please refer to the screenshot- On the right side the job failed when release published Triggering branch is empty On the left side job passed after recreating the release and published, we are getting Triggering tag with the actual tag value screenshot1

We are using CircleCI-Public/trigger-circleci-pipeline-action@v1.0.5 to trigger circleci from github actions

Minimum reproduction code

https://github.com/fundingasiagroup/indo-banking-service/blob/master/.github/workflows/release.yml

Steps to reproduce

When the release is published github actions are not triggered facing error code 400 https://github.com/fundingasiagroup/indo-banking-service/actions/runs/6389570633/job/17341892137

Expected behavior

Github action should trigger circleci job always as expected

GitHub Action Version

1.0.5

Other

No response