- Newest
- Most votes
- Most comments
Hey, thanks for the answer. I don't think I'm using Github Actions. What I did is open the app from the Amazon Amplify page ( https://eu-west-3.console.aws.amazon.com/amplify/home) > Hosting Environments > Connect Branch, and there I connected my github repository. I didn't make any specific changes myself and the backend files are not even in that github branch; that branch only contains the front-end of the application.
Hi, if I understand correctly, you are using Github Actions on Github to build your code each time you commit something new.
If this is correct, what you can do is to create a hook that takes different actions depending on the path of committed file.
For example, use this one: https://github.com/dorny/paths-filter
If you want to do it all by yourself, read https://www.techielass.com/trigger-a-github-action-workflow-when-a-folder-changes/ section "GitHub Actions triggers" will explain how to distinguish paths of updated file,
Then, you can
- launch and build the lambda if one of its files get modified
- build lambda layer and push it only if one of its files get modified. In that case, you may also want to build and push the lambda.
I hope that my initial guess about GitHub Actions was correct (you did not give details). Otherwise you can forget the above... ;-)
Didier
Relevant content
- asked 5 years ago
- asked 2 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Ok. Understood. Then forget my proposal. Sorry for not being able to help further.