aws-actions / aws-codebuild-run-build

Run an AWS CodeBuild project as a step in a GitHub Actions workflow job.
https://aws.amazon.com/codebuild
Apache License 2.0
274 stars 139 forks source link

Can I make Github action not to wait for CodeBuild's completion? #131

Closed muthudlg closed 1 year ago

muthudlg commented 1 year ago

Hi,

Thanks for implementing 'aws-actions/aws-codebuild-run-build@v1'. This is very useful.

My project has a requirement: Once the Codebuild job is triggered from Actions, the workflow should not wait for Codebuild job to complete.

Is there a way to force the Actions not to wait? Appreciate your help.

Thanks

madebyherzblut commented 1 year ago

You can call the CodeBuild API directly instead of using this action. See https://github.com/aws-actions/aws-codebuild-run-build/issues/51#issuecomment-792334571 for more info.

muthudlg commented 1 year ago

You can call the CodeBuild API directly instead of using this action. See #51 (comment) for more info.

thanks much @madebyherzblut It worked :)

muthudlg commented 1 year ago

For those who are here for solution, below is the snippet I have used instead of 'aws-actions/aws-codebuild-run-build@v1':

- name: Start CodeBuild run
      run: aws codebuild start-build --project-name projectname --environment-variables-override "[{\"name\":\"ACTION\",\"value\":\"create\"},{\"name\":\"BRANCH\",\"value\":\"${BITBUCKET_BRANCH}\"}]"