Skip to content

Commit

Permalink
Try to update version with commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlavv committed Nov 18, 2024
1 parent 21b3591 commit 2780a81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
latest_tag=${{ env.tag }}
echo "Latest tag: $latest_tag"
# Extract the major, minor, and patch numbers from the tag
IFS='.' read -r -a version_parts <<< "$latest_tag"
major=${version_parts[0]}
Expand All @@ -50,13 +50,13 @@ jobs:
else
patch=$((patch + 1))
fi
new_version="$major.$minor.$patch"
echo "New version: $new_version"
echo "new_version=$new_version" >> $GITHUB_ENV
echo "new_version=$new_version" >> $GITHUB_OUTPUT
- name: Update tag in the repository
- name: Create and push new tag
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
Expand Down

0 comments on commit 2780a81

Please sign in to comment.