-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip deploying services that do not need to be re-run (#739)
* Add dummy commit to test * Try to get from lerna inline * change ref * Commit previous * Test in unit tests for now for speed * Fix typo * Move it to get-branch-name-vars * put it in a script * pass a triggered commit * fix gha syntax * Try not from env * newline * try to get last sha * missing some history * fix fetch depth? * test some changes * fix typo * output only changed services * single line output * Trying to pass to deploy-to-env * pass changed-services * testing, for now remove deps for dev * test a change * use gha func * Test syntax * Test a skip * Test skipping * See if postgres triggers now * Add an initial ts file for workflow * build the scripts and try it * Need to setup the env * Try to just yarn install focus * For now let's commit it, faster dev loop * Move to an action * Add action.yml * It's always the typo * Try node16 for module import * can't avoid setup here in monorepo * Add GITHUB_TOKEN * Test getting all services * Try to run a full run * Output the value for debug * dashes not underlines * Add a few more conditionals * Check whether each service needs a deploy * Fix app-web * Try to skip successful jobs * Don't use local testing things * Run in CI * Actually pass the branch name * pass the stage name correctly * Not just success, but skipped as well * Prisma layer name * Check the migrations step * Always run cypress * Reference the local * Fix a postgres manual delete * Try to install tsc global without env * Pass the appropriate stage name * Use yarn build from scripts * Need the env * Don't run cypress if deploy-app hasn't gone * Fix stage name pass * Add postgres install back * Add in new infra-api service * Fix branch name * Get changed services from lerna * Try to get the sha * Try to only use success * Have promote deploy everything always * Remove the js * Always run finishing prep * check the sha being passed * Larger fetch-depth on the deploy check * Fix naming. Call it what it really is. * Add test commit to see if we deploy the service * Skipping can make jobs skip * Testing another service change * Clean the PR * Update readme to document adding services * Use lerna func to get all services * One more test before we merge it * Put it back before merge * Try to reduce code climate complexity score
- Loading branch information
1 parent
bb0b87b
commit ad9acd9
Showing
11 changed files
with
349 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: 'Get Changed Services' | ||
description: 'Finds services on a PR branch that need to be deployed' | ||
inputs: | ||
branchName: | ||
description: 'The current branch that we are deploying' | ||
required: true | ||
outputs: | ||
changed-services: | ||
description: 'An array of services that need to be deployed' | ||
runs: | ||
using: 'node16' | ||
main: 'index.js' |
Oops, something went wrong.