Skip to content

Commit 958beb6

Browse files
committed
Bump version to 0.4.5 and update workflows to pass current version as input
1 parent c33c1b8 commit 958beb6

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Publish Crate
33
on:
44
workflow_dispatch:
55
workflow_call:
6+
inputs:
7+
current_version:
8+
type: string
9+
required: true
10+
11+
612
# release:
713
# types: [published]
814

@@ -35,6 +41,7 @@ jobs:
3541
formula-name: folder-declutter
3642
homebrew-tap: ricardodantas/homebrew-tap
3743
base-branch: main
44+
tag-name: ${{ inputs.current_version }}
3845
env:
3946
# the personal access token should have "repo" & "workflow" scopes
4047
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
release:
6363
runs-on: ubuntu-latest
6464
needs: [check-version, build]
65+
outputs:
66+
current_version: ${{ needs.check-version.outputs.current_version }}
6567
steps:
6668
- uses: actions/checkout@v4
6769
- name: Get current version from Cargo.toml
@@ -104,3 +106,5 @@ jobs:
104106
needs: [release]
105107
uses: ./.github/workflows/publish.yml
106108
secrets: inherit
109+
with:
110+
current_version: ${{ needs.release.outputs.current_version }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "folder-declutter"
3-
version = "0.4.4"
3+
version = "0.4.5"
44
edition = "2021"
55
authors = ["Ricardo Dantas <ricardodantas@gmail.com>"]
66
description = "Folder Declutter is a command-line and library utility written in Rust that helps you free up disk space by automatically deleting files that haven't been modified in a specified number of days."

0 commit comments

Comments
 (0)