Enterprise-CMCS / macpro-quickstart-serverless

Other
18 stars 14 forks source link

Deploy Only Changed Files #567

Closed abelzer212 closed 2 years ago

abelzer212 commented 2 years ago

Purpose

Alter the github action to only deploy changed files

Linked Issues to Close

https://qmacbis.atlassian.net/browse/OY2-19678

Approach

We use a new Git Actions service GitDiff to find the list of changed files. We then filter the deployment service list to only include these changed files. If a file changed outside of a service, we deploy the entire application to be safe.

Adding this to your repo

This should be as easy as finding the appropriate files you're using and adding in the code from this PR. If you have any issues please reach out

Pull Request Creator Checklist

Pull Request Reviewer/Assignee Checklist

codeclimate[bot] commented 2 years ago

Code Climate has analyzed commit 3f2e400b and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 24.8% (0.0% change).

View more on Code Climate.

gitsierra commented 2 years ago

This script is super cool