Skip to content
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

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

Closed
muthudlg opened this issue May 4, 2023 · 3 comments
Closed

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

muthudlg opened this issue May 4, 2023 · 3 comments

Comments

@muthudlg
Copy link

muthudlg commented May 4, 2023

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
Copy link

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

@muthudlg
Copy link
Author

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

thanks much @madebyherzblut It worked :)

@muthudlg
Copy link
Author

muthudlg commented May 18, 2023

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}\"}]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants