Skip to content

Commit

Permalink
[#234] Change to use jq
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangmirs committed Oct 22, 2023
1 parent a9ea746 commit add56b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
nextVersion=$(IFS=$delimiter ; echo "${array[*]}")
echo "version=$nextVersion" >> $GITHUB_OUTPUT
sed -i "s/\"version\": \".*\"/\"version\": \"$nextVersion\"/" ${{ env.VERSION_FILE }}
jq ".version = $nextVersion" ${{ env.VERSION_FILE }} > ${{ env.VERSION_FILE }}.tmp && mv ${{ env.VERSION_FILE }}.tmp ${{ env.VERSION_FILE }}
- name: Create a new pull request to bump the version
if: steps.compare_versions.outcome == 'failure'
Expand All @@ -72,7 +72,7 @@ jobs:
delete-branch: true
title: "[Chore] Bump version to ${{ steps.next_version.outputs.version }}"
commit-message: "Bump version to ${{ steps.next_version.outputs.version }}"
draft: false
draft: true
labels: |
type : chore
body: |
Expand Down

0 comments on commit add56b8

Please sign in to comment.