Skip to content

Commit

Permalink
Scripts for bumping versions (#995)
Browse files Browse the repository at this point in the history
* Scripts for bumping versions

* comments

* Bump built-in connectors

---------

Co-authored-by: Lovro Mažgon <lovro.mazgon@gmail.com>
  • Loading branch information
hariso and lovromazgon committed Apr 14, 2023
1 parent e8bcbdd commit a1d1f41
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/bump-builtin-connectors.sh
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
40 changes: 40 additions & 0 deletions scripts/bump-sdk-in-connectors.sh
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

0 comments on commit a1d1f41

Please sign in to comment.