Skip to content

Commit 44efdc6

Browse files
Merge pull request #11 from intersystems-community/autobump_version
autobump version after release
2 parents c463160 + 2e7f4ae commit 44efdc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ jobs:
122122
id: set-version
123123
run: |
124124
VERSION=`cat ./dist/.version`
125+
NEXT_VERSION=`cat ./dist/.version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
125126
echo ::set-output name=name::`cat ./dist/.name`
126127
tmp=$(mktemp)
127128
git config --global user.name 'ProjectBot'
128129
git config --global user.email '[email protected]'
129-
jq --arg version "${VERSION}-SNAPSHOT" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
130+
jq --arg version "${NEXT_VERSION}-SNAPSHOT" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
130131
git add package.json
131132
git commit -m 'auto bump version with release'
132133
jq --arg version "$VERSION" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json

0 commit comments

Comments
 (0)