Skip to content

Commit 710e8b0

Browse files
Sync dependencies in CI (#194)
## Usage and product changes We add a sync-dependencies job to be run in CI after successful snapshot and release deployments. The job sends a request to vaticle-bot to update all downstream dependencies. Note: this PR does _not_ update the `dependencies` repo dependency. It will be updated automatically by the bot during its first pass.
1 parent 397fac4 commit 710e8b0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.factory/automation.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ build:
6161
export DEPLOY_NPM_USERNAME=$REPO_TYPEDB_USERNAME
6262
export DEPLOY_NPM_PASSWORD=$REPO_TYPEDB_PASSWORD
6363
bazel run --define version=$(git rev-parse HEAD) //grpc/nodejs:deploy-npm -- snapshot
64+
sync-dependencies:
65+
image: vaticle-ubuntu-22.04
66+
filter:
67+
owner: vaticle
68+
branch: [master, development]
69+
dependencies:
70+
- build
71+
- build-dependency
72+
- deploy-crate-snapshot
73+
- deploy-npm-snapshot
74+
command: |
75+
export SYNC_DEPENDENCIES_TOKEN=$REPO_GITHUB_TOKEN
76+
bazel run @vaticle_dependencies//tool/sync:dependencies -- --source ${FACTORY_REPO}@${FACTORY_COMMIT}
6477
6578
release:
6679
filter:
@@ -101,3 +114,15 @@ release:
101114
sudo apt install -y expect
102115
export DEPLOY_NPM_TOKEN=$REPO_NPM_TOKEN
103116
bazel run --define version=$(cat VERSION) //grpc/nodejs:deploy-npm -- release
117+
sync-dependencies-release:
118+
image: vaticle-ubuntu-22.04
119+
filter:
120+
owner: vaticle
121+
branch: [master, development]
122+
dependencies:
123+
- deploy-github
124+
- deploy-crate-release
125+
- deploy-npm-release
126+
command: |
127+
export SYNC_DEPENDENCIES_TOKEN=$REPO_GITHUB_TOKEN
128+
bazel run @vaticle_dependencies//tool/sync:dependencies -- --source ${FACTORY_REPO}@$(cat VERSION)

0 commit comments

Comments
 (0)