Skip to content

Commit

Permalink
[Release]Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluemangoo authored Apr 30, 2024
1 parent d924541 commit 7a9664f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ jobs:
if: "contains(github.event.commits[0].message, '[Release]')"
steps:
- uses: actions/checkout@v4
- name: Get version
run: version=$(grep -m 1 version Cargo.toml | tr -s ' ' | tr -d '"' | tr -d "'")
- name: Check git tag
run: |
git rev-parse ${{ env.version }} || exit 0
version=$(grep -m 1 version Cargo.toml | tr -s ' ' | tr -d '"' | tr -d "'")
git rev-parse $version || exit 0
exit 1
build:
runs-on: ${{ matrix.host_os }}
Expand Down

0 comments on commit 7a9664f

Please sign in to comment.