Skip to content

Commit ddf0020

Browse files
committed
Attempt to fix bump_version.yml
1 parent d2d314a commit ddf0020

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/bump_version.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: bump version
2+
permissions:
3+
contents: write
24
# Upstream uses last portion of the version as a unique part to differentiate builds
35
# created from different commits. Last part (or VERSION_TWEAK) is basically a number
46
# of commits since the last tag (computed automatically by git).
@@ -43,15 +45,15 @@ jobs:
4345
mv cmake/autogenerated_versions_new.txt cmake/autogenerated_versions.txt
4446
cat cmake/autogenerated_versions.txt
4547
# update rest of the version info (mostly VERSION_DESCRIBE and VERSION_STRING)
46-
python3 tests/ci/version_helper.py --update-cmake --version-type='altinitystable'
48+
python3 tests/ci/version_helper.py --update-cmake --version-type=${{ env.VERSION_TYPE }}
4749
4850
- name: push updated cmake/autogenerated_versions.txt
4951
run: |
52+
set -x
5053
# export version info as multiple variables
5154
source <(python3 tests/ci/version_helper.py --export --version-type='altinitystable')
52-
git \
53-
54-
-c user.name=altinity-robot \
55-
-c commit.gpgsign=false
56-
git commit -a -m "Bumped version to $CLICKHOUSE_VERSION_DESCRIBE" cmake/autogenerated_versions.txt
57-
git push
55+
git config --global [email protected]
56+
git config --global user.name=altinity-robot
57+
git config --global commit.gpgsign=false
58+
git commit -m "Bumped version to $CLICKHOUSE_VERSION_DESCRIBE" -- cmake/autogenerated_versions.txt
59+
git push

0 commit comments

Comments
 (0)