Amazon CodeCatalyst is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see How to migrate from CodeCatalyst.
Referencing source repository files
If you have files that reside in a source repository, and you need to refer to these files in one of your workflow actions, complete the following procedure.
Note
See also Referencing files in an artifact.
To reference a file stored in a source repository
-
In the action where you want to reference a file, add code similar to the following:
Actions: My-action: Inputs: Sources: - WorkflowSource Configuration: Steps: - run: cd my-app && cat file1.jarIn the previous code, the action looks in the
my-appdirectory in the root of theWorkflowSourcesource repository to find and display thefile1.jarfile.