Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into dcr-and-scope-update
Browse files Browse the repository at this point in the history
  • Loading branch information
JeethJJ committed Aug 16, 2024
2 parents c7d2706 + d503ea2 commit 51050dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
echo "New version: $NEW_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "$NEW_VERSION" > VERSION
shell: bash

- name: Prepare hotfix
Expand All @@ -62,14 +60,14 @@ jobs:
# Determine the hotfix tag
# echo "Determining the hotfix tag..."
hotfix_count=$(git tag | grep -E "${{ env.CURRENT_VERSION }}-hotfix-[0-9]+" | wc -l)
hotfix_count=$(git tag | grep -E "${{ env.NEW_VERSION }}-hotfix-[0-9]+" | wc -l)
echo "Hotfix count: $hotfix_count"
next_hotfix_no=$((hotfix_count + 1))
echo "Next Hotfix number: $next_hotfix_no"
# Replace the last digit with the incremented value
hotfix_release_tag=${{ env.CURRENT_VERSION }}-hotfix-$next_hotfix_no
hotfix_release_tag=${{ env.NEW_VERSION }}-hotfix-$next_hotfix_no
echo "Hotfix release tag: $hotfix_release_tag"
# strip prepending 'v'
Expand Down Expand Up @@ -118,6 +116,7 @@ jobs:
- name: Commit and push new version
if: ${{ env.IS_HOTFIX == 'false' }}
run: |
echo "${{ env.NEW_VERSION }}" > VERSION
git add VERSION
git commit -m "Increment release version to ${{ env.NEW_VERSION }}"
git push "https://$GIT_USERNAME:$GITHUB_TOKEN@github.com/${{ github.repository }}" master
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.135
0.0.136

0 comments on commit 51050dc

Please sign in to comment.