-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Scripts for bumping versions * comments * Bump built-in connectors --------- Co-authored-by: Lovro Mažgon <lovro.mazgon@gmail.com>
- Loading branch information
1 parent
e8bcbdd
commit a1d1f41
Showing
2 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# Bumps the versions of built-in connectors. | ||
# Requires GitHub CLI. | ||
|
||
git checkout main | ||
git pull origin main | ||
git checkout -b bump-builtin-connectors | ||
|
||
for conn in 'file' 'kafka' 'generator' 's3' 'postgres' 'log' | ||
do | ||
go get github.com/conduitio/conduit-connector-$conn@latest | ||
done | ||
|
||
go mod tidy | ||
|
||
git commit -am "Bump built-in connectors" | ||
git push origin bump-builtin-connectors | ||
|
||
gh pr create --fill --head bump-builtin-connectors |
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,40 @@ | ||
#!/bin/bash | ||
# Bumps the SDK version in the built-in connectors. | ||
# The script assumes that the Conduit repo and the repos | ||
# for all built-in connectors are in the same directory. | ||
# Requires GitHub CLI. | ||
if [ $# -eq 0 ] | ||
then | ||
echo "No arguments supplied" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "Version is empty" | ||
exit 1 | ||
fi | ||
|
||
SDK_V=$1 | ||
|
||
for conn in 'file' 'kafka' 'generator' 's3' 'postgres' 'log' | ||
do | ||
cd ../conduit-connector-$conn | ||
|
||
echo | ||
echo "Working on conduit-connector-$conn" | ||
|
||
git checkout main | ||
git pull origin main | ||
git checkout -b bump-sdk-version-$SDK_V | ||
|
||
go get github.com/conduitio/conduit-connector-sdk@$SDK_V | ||
go mod tidy | ||
|
||
git commit -am "Bump SDK version to $SDK_V" | ||
git push origin bump-sdk-version-$SDK_V | ||
|
||
gh pr create --fill --head bump-sdk-version-$SDK_V | ||
|
||
cd ../conduit | ||
done |