Skip to content

Commit

Permalink
Change version test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaskov committed Jun 26, 2024
1 parent 4a1b880 commit b56c337
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/change_version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

echo "Change type: ${CHANGE_TYPE}"

original_version_str="$(cat ${GITHUB_WORKSPACE}/Cargo.toml | grep "version = ")"
version_number="$(echo ${original_version_str} | cut -d "\"" -f2)"

Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
chmod +x ${GITHUB_WORKSPACE}/.github/change_version.sh
bash ${GITHUB_WORKSPACE}/.github/change_version.sh
- name: Pushing Cargo.toml changes to master
run: |
git config --local user.name 'github-actions'
git config --local user.email 'github-actions@github.com'
git commit -am "Automated version change in Cargo.toml [skip actions]"
git push origin master
- run: cargo publish --no-verify --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
# - name: Pushing Cargo.toml changes to master
# run: |
# git config --local user.name 'github-actions'
# git config --local user.email 'github-actions@github.com'
# git commit -am "Automated version change in Cargo.toml [skip actions]"
# git push origin master

# - run: cargo publish --no-verify --token ${CRATES_TOKEN}
# env:
# CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit b56c337

Please sign in to comment.