Skip to content

Commit ca87713

Browse files
authored
fix release git version check (#79)
1 parent 913f582 commit ca87713

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && runner.os != 'Windows'
6363
run: |
6464
PUSHED_TAG=${GITHUB_REF##*/}
65-
CURR_VER=$( grep version Cargo.toml | head -n 1 | awk '{print $3}' | tr -d '"' )
65+
CURR_VER=$( grep version crates/kiorg/Cargo.toml | head -n 1 | awk '{print $3}' | tr -d '"' )
6666
if [[ "${PUSHED_TAG}" != "v${CURR_VER}" ]]; then
6767
echo "Cargo metadata has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
6868
exit 1
@@ -72,9 +72,9 @@ jobs:
7272
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && runner.os == 'Windows'
7373
run: |
7474
$PUSHED_TAG = (Split-Path -Path $env:GITHUB_REF -Leaf)
75-
$CURR_VER_Line = Select-String -Path Cargo.toml -Pattern "version" | Select-Object -First 1
75+
$CURR_VER_Line = Select-String -Path crates/kiorg/Cargo.toml -Pattern "version" | Select-Object -First 1
7676
if ($null -eq $CURR_VER_Line) {
77-
Write-Error "Could not find 'version' in Cargo.toml"
77+
Write-Error "Could not find 'version' in crates/kiorg/Cargo.toml"
7878
exit 1
7979
}
8080

0 commit comments

Comments
 (0)