Skip to content

Commit

Permalink
Revert "publish version action modifies go.mod files in examples and …
Browse files Browse the repository at this point in the history
…tests/slo now"

This reverts commit 903b839.
  • Loading branch information
asmyasnikov committed Mar 11, 2024
1 parent 903b839 commit 7be8c10
Show file tree
Hide file tree
Showing 5 changed files with 847 additions and 43 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ jobs:
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l);
TAG="v$MAJOR.$MINOR.$PATCH-rc$RC";
else
(sed -e 's/Minor = "\([0-9]*\)"/Minor = "'$MINOR'"/g' -i $VERSION_FILE && sed -e 's/Patch = "\([0-9]*\)"/Patch = "'$PATCH'"/g' -i $VERSION_FILE && git add $VERSION_FILE);
(cd examples && sed -e 's/github.com\/ydb-platform\/ydb-go-sdk\/v3 .*$/github.com\/ydb-platform\/ydb-go-sdk\/v3 v'"$MAJOR.$MINOR.$PATCH"'/g' -i go.mod && go mod tidy && git add go.*);
(cd tests/slo && sed -e 's/github.com\/ydb-platform\/ydb-go-sdk\/v3 .*$/github.com\/ydb-platform\/ydb-go-sdk\/v3 v'"$MAJOR.$MINOR.$PATCH"'/g' -i go.mod && go mod tidy && git add go.*);
(echo "## v$MAJOR.$MINOR.$PATCH" >> $CHANGELOG_FILE.tmp && cat $CHANGELOG_FILE >> $CHANGELOG_FILE.tmp && mv $CHANGELOG_FILE.tmp $CHANGELOG_FILE && git add $CHANGELOG_FILE);
sed -e 's/Minor = "\([0-9]*\)"/Minor = "'$MINOR'"/g' -i $VERSION_FILE;
sed -e 's/Patch = "\([0-9]*\)"/Patch = "'$PATCH'"/g' -i $VERSION_FILE;
git add $VERSION_FILE;
echo "## v$MAJOR.$MINOR.$PATCH" >> $CHANGELOG_FILE.tmp
cat $CHANGELOG_FILE >> $CHANGELOG_FILE.tmp
mv $CHANGELOG_FILE.tmp $CHANGELOG_FILE;
git add $CHANGELOG_FILE;
git config --global user.email "robot@umbrella";
git config --global user.name "robot";
git commit -m "Release v$MAJOR.$MINOR.$PATCH";
Expand Down
4 changes: 3 additions & 1 deletion examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/ydb-platform/gorm-driver v0.0.5
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.1.2
github.com/ydb-platform/ydb-go-sdk-prometheus v0.11.10
github.com/ydb-platform/ydb-go-sdk/v3 v3.57.0
github.com/ydb-platform/ydb-go-sdk/v3 v3.47.3
github.com/ydb-platform/ydb-go-yc v0.10.1
google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54
gorm.io/driver/postgres v1.5.0
Expand Down Expand Up @@ -74,4 +74,6 @@ require (
modernc.org/token v1.0.0 // indirect
)

replace github.com/ydb-platform/ydb-go-sdk/v3 => ../

replace xorm.io/xorm => github.com/ydb-platform/xorm v0.0.3
Loading

0 comments on commit 7be8c10

Please sign in to comment.