Skip to content

Commit

Permalink
Fixed version update script.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaskov committed Jun 26, 2024
1 parent 4a1b880 commit 228a8ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/change_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ else
fi

new_version_str='version = "'${major}.${minor}.${patch}'"'

echo "Previous version: ${original_version_str}"
echo "New version: ${new_version_str}"

sed -i "s|${original_version_str}|${new_version_str}|g" ${GITHUB_WORKSPACE}/Cargo.toml

7 changes: 2 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ jobs:
app-id: ${{ vars.FAIR_MATH_PUBLISHER_ID }}
private-key: ${{ secrets.FAIR_MATH_PUBLISHER_PRIVATE_KEY }}

- run: |
echo "Change type: $CHANGE_TYPE"
env:
CHANGE_TYPE: ${{ inputs.change_type }}
- name: Checkout sources
uses: actions/checkout@v4
with:
Expand All @@ -45,6 +40,8 @@ jobs:
run: |
chmod +x ${GITHUB_WORKSPACE}/.github/change_version.sh
bash ${GITHUB_WORKSPACE}/.github/change_version.sh
env:
CHANGE_TYPE: ${{ inputs.change_type }}

- name: Pushing Cargo.toml changes to master
run: |
Expand Down

0 comments on commit 228a8ee

Please sign in to comment.