Skip to content

Commit 2a4c9ce

Browse files
committed
ci(github): fetch the tags for release build jobs
The `build.rs` includes the commit hash by default in the version, but omits it when git-z is built exactly from a release tag. However, tags were not fetched in the release builds, making them include the commit hash even for releases. Refs: #38
1 parent 66aa9b0 commit 2a4c9ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
run: git config --global core.autocrlf false
6565
- name: Clone the repository
6666
uses: actions/checkout@v4
67+
with:
68+
fetch-tags: true
6769
- name: Determine the name of the binary
6870
id: name
6971
shell: bash
@@ -101,6 +103,8 @@ jobs:
101103
steps:
102104
- name: Clone the repository
103105
uses: actions/checkout@v4
106+
with:
107+
fetch-tags: true
104108
- name: Install the Rust toolchain
105109
run: rustup target add x86_64-unknown-linux-musl
106110
- name: Install cargo-deb
@@ -122,6 +126,8 @@ jobs:
122126
run: git config --global core.autocrlf false
123127
- name: Clone the repository
124128
uses: actions/checkout@v4
129+
with:
130+
fetch-tags: true
125131
- name: Install the Rust toolchain
126132
run: rustup target add x86_64-pc-windows-msvc
127133
- name: Install cargo-wix

0 commit comments

Comments
 (0)