Skip to content

Commit 2c9e4c5

Browse files
authored
Remove unnecessary operations in minor_version_release.yml (#4267)
1 parent 280414e commit 2c9e4c5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/minor_version_release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
shell: bash
1919
# We only need `major.minor` in Readme so we cut the full version string to the first two tokens
2020
run: |
21-
echo "current_release_minor=$(cat VERSION.txt | cut -d "." -f 1,2)" >> $GITHUB_OUTPUT
21+
echo "current_release_minor=$(cut -d "." -f 1,2 < VERSION.txt)" >> "$GITHUB_OUTPUT"
2222
2323
- name: Create new version branch
2424
run: |
@@ -33,15 +33,12 @@ jobs:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434
run: |
3535
git checkout main
36-
cat VERSION.txt | awk -F. '/[0-9]+\./{$2++;print}' OFS=. | tee VERSION.txt
36+
NEW_VERSION=$(awk -F. '/[0-9]+\./{$2++;print}' OFS=. < VERSION.txt)
37+
echo "$NEW_VERSION" > VERSION.txt
3738
cat VERSION.txt
38-
pip install --upgrade pip
39-
pip install .[all]
40-
pip install ./rest_api
41-
python .github/utils/generate_openapi_specs.py
4239
git checkout -b bump-version
4340
git add .
44-
git commit -m "Update unstable version and openapi schema"
41+
git commit -m "Update unstable version"
4542
git push -u origin bump-version
4643
gh pr create -B main -H bump-version --title 'Bump unstable version' --body 'Part of the release process' --label 'ignore-for-release-notes'
4744

0 commit comments

Comments
 (0)