Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
kaorlol committed Dec 23, 2024
1 parent da31c6b commit 3296414
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
VERSION: 0.1.0

jobs:
build:
Expand All @@ -18,13 +19,10 @@ jobs:
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2

- name: Metadata
run: cargo metadata --no-deps --format-version 1

- name: Extract Version
id: version
run: |
VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.source == null) | .version')
VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build
Expand Down

0 comments on commit 3296414

Please sign in to comment.