aws-codebuild-run-build icon indicating copy to clipboard operation
aws-codebuild-run-build copied to clipboard

feat: Add support for sourceTypeOverride and sourceLocationOverride

Open yamao-latte opened this issue 1 year ago • 2 comments

This commit introduces two new optional parameters:

sourceTypeOverride: Allows overriding the source input type defined in the build project for the current build. Valid values include NO_SOURCE, CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, and GITHUB_ENTERPRISE. sourceLocationOverride: Enables specifying a location that overrides the source location defined in the build project for the current build.

These parameters provide flexibility in customizing the source settings for individual builds, without modifying the underlying build project configuration.

Issue #164

Description of changes:

  • Added sourceTypeOverride parameter to allow users to override the source input type defined in the build project.
    • Updated the action.yml file to include the sourceTypeOverride parameter with a description and set it as optional.
    • Modified the relevant code sections to handle the sourceTypeOverride parameter and pass its value to the CodeBuild API when starting a build.
  • Introduced sourceLocationOverride parameter to enable users to specify a custom source location for the current build.
    • Updated the action.yml file to include the sourceLocationOverride parameter with a description and set it as optional.
    • Modified the relevant code sections to handle the sourceLocationOverride parameter and pass its value to the CodeBuild API when starting a build.
  • Updated the README.md file to document the new sourceTypeOverride and sourceLocationOverride parameters, providing examples and explaining their usage.

These changes enhance the flexibility and usability of the Action, allowing users to customize their build source settings on a per-build basis and enabling integration with various source providers, including GitHub Enterprise.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • [ ] Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

yamao-latte avatar Apr 28 '24 10:04 yamao-latte

Please, review this PR.

I need this as well

avx-rodmans avatar Jun 24 '24 17:06 avx-rodmans

Thanks for making this change! taking a look now

taoyong-ty avatar Sep 04 '24 19:09 taoyong-ty