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

ci: follow .deb naming conventions #969

Merged
merged 15 commits into from
Jan 12, 2023
Prev Previous commit
Next Next commit
show 8 parts of sha for consistency
  • Loading branch information
ClementTsang committed Jan 12, 2023
commit 0ce843929bae597ae95dbfdd02b3339dbbfd45e0
4 changes: 2 additions & 2 deletions .github/workflows/build_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ jobs:
VERSION=$(./target/${{ matrix.info.target }}/release/btm -V | awk '{print $2}')
echo "CUSTOM_VERSION_ARG='--deb-version=$VERSION'" >> $GITHUB_OUTPUT
else
VER=$(grep -m1 "^version" Cargo.toml | awk '{print $3}' | tr -d \")
APPEND=nightly-${GITHUB_SHA::7}
VER=$(grep -m1 "^version" Cargo.toml | awk '{print $3}' | tr -d \") # NB: Assumes the first instance of version is the build version
APPEND=nightly-${GITHUB_SHA::8}
echo "CUSTOM_VERSION_ARG='--deb-version=$VER-$APPEND'" >> $GITHUB_OUTPUT
fi

Expand Down