Skip to content

Commit

Permalink
Fix check for new commit in update-packs.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Sep 24, 2024
1 parent 1900a1f commit 2f0552f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-packs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Update gem version and push new changes
run: |
if [ -n "$(git status --porcelain)" ]; then
if [ -n "$(git log origin/main..HEAD --oneline)" ]; then
current_version=$(grep 'VERSION = ' lib/phlex/icons/version.rb | cut -d '=' -f 2- | tr -d ' ' | tr -d \')
new_version=$(echo $current_version | awk -F. -v OFS=. '{$2++; $3=0; print}')
sed -i "s/VERSION = '$current_version'/VERSION = '$new_version'/" lib/phlex/icons/version.rb
Expand Down

0 comments on commit 2f0552f

Please sign in to comment.