Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EDIT: IGNORE THIS] try using exit codes instead of env vars, like i should've done originally. #32

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,15 @@ jobs:
with:
submodules: recursive
- name: Check if version in Cargo.toml has changed
id: project
id: version_changed
run: |
git rev-parse HEAD
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"
! git diff-tree -r -G'^version ?= ?"*"' --exit-code HEAD Cargo.toml
- name: Install Rust
if: steps.project.VERSION_CHANGED == '1'
if: steps.version_changed.status == 'success'
run: rustup update
- name: Install cargo-release
if: steps.project.VERSION_CHANGED == '1'
if: steps.version_changed.status == 'success'
run: cargo install cargo-release
- name: Run cargo-release
if: steps.project.VERSION_CHANGED == '1'
if: steps.version_changed.status == 'success'
run: cargo release --execute
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stayfocused"
version = "0.3.8"
version = "0.3.9"
description = "Software To Avoid [Y] Fixating On Completely Unproductive Shit Every Day"

repository = "https://github.com/duckinator/STAYFOCUSED"
Expand Down