I have a Github actions workflow that consists of two dependent jobs:
- Job A does change detection: Which modules in my monorepo changed.
- Job B is a matrix job, iterating of all changed modules (the working directories are the result of job a) and doing some CI stuff.
Now I want to use AWS CodeBuild to run as a self hosted runner for GitHub actions (so I can run everything in my VPC).
While this basically works, for each job, the code gets checked out to a different folder.
Job A return this folder for the target path to a changed module /codebuild/output/src1067370363/src/actions-runner/_work/myorg/myrepo/packages/module-a
But in Job B the source code ist checked out to /codebuild/output/src1107479956/src/actions-runner/_work/myorg/myrepo
Therefore all CI commands fail since the directory does not exist.
Is it possible in CodeBuild to change the directory?