Skip to content

Commit

Permalink
i swear i am going to lose my mind fighting with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
duckinator committed Oct 15, 2024
1 parent aaa4df5 commit faef269
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ jobs:
- name: Check if version in Cargo.toml has changed
id: project
run: |
git diff-tree -r -G'^version ?= ?"*"' --exit-code HEAD Cargo.toml
VERSION_CHANGED=$?
echo "VERSION_CHANGED=${VERSION_CHANGED}" >> $GITHUB_ENV
git diff-tree -r -G'^version ?= ?"*"' --exit-code HEAD Cargo.toml && VERSION_CHANGED=0 || VERSION_CHANGED=1
echo "VERSION_CHANGED=${VERSION_CHANGED}"
echo "VERSION_CHANGED=${VERSION_CHANGED}" >> "$GITHUB_ENV"
- name: Install Rust
if: steps.project.VERSION_CHANGED == '1'
run: rustup update
Expand Down

0 comments on commit faef269

Please sign in to comment.