File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 5252 php-version : ' 8.0'
5353 extensions : mbstring, intl
5454 coverage : none
55- tools : composer:v2, composer-semver
55+ tools : composer:v2
5656
5757 - name : Install dependencies
5858 working-directory : ./php/sdk
6767 - name : Bump patch version
6868 id : bump_version
6969 run : |
70- # Use composer-semver for version bumping (always patch for main branch pushes)
71- NEW_VERSION=$(composer semver ${{ steps.current_version.outputs.version }} --increment=patch)
70+ # Get current version
71+ CURRENT_VERSION=${{ steps.current_version.outputs.version }}
72+
73+ # Use PHP to increment patch version instead of composer semver
74+ NEW_VERSION=$(php -r '
75+ $version = "${{ steps.current_version.outputs.version }}";
76+ list($major, $minor, $patch) = explode(".", $version);
77+ $patch++;
78+ echo "$major.$minor.$patch";
79+ ')
80+
7281 echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
7382
7483 # Update version in composer.json
You can’t perform that action at this time.
0 commit comments