Skip to content

Commit

Permalink
feat: update ci github action
Browse files Browse the repository at this point in the history
  • Loading branch information
khoilen committed Jan 7, 2025
1 parent f14a94b commit 9012a4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
version=$(jq -r '.version' ./package.json)
echo "Bumped version: $version"
echo "new_version=$version" >> $GITHUB_ENV
if [ "${{ env.new_version }}" != "unknown" ]; then
git checkout -b bump-version-${{ env.new_version }}
if [$version != "unknown" ]; then
git checkout -b bump-version-$version
git add .
git commit -m "Bump version to ${{ env.new_version }}"
git tag "v${{ env.new_version }}"
git push origin bump-version-${{ env.new_version }} --follow-tags
git commit -m "Bump version to $version"
git tag "v$version"
git push origin bump-version-$version --follow-tags
else
echo "Skipping push due to unknown version"
fi
Expand Down

0 comments on commit 9012a4c

Please sign in to comment.