Skip to content

Commit

Permalink
chore: change dev-build version
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 committed Aug 26, 2024
1 parent f029ddd commit 18c9255
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-dev-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ jobs:
id: set-version
shell: bash
run: |
commitShortSHA=`echo ${GITHUB_SHA} | cut -c1-8`
buildTime=`date +%Y%m%d%H%M%S`
BUILD_VERSION="$commitShortSHA-$buildTime"
RUST_TOOLCHAIN_VERSION=$(cat rust_toolchain.toml | grep -Eo '[0-9]{4}-[0-9]{2}-[0-9]{2}')
echo "VERSION=${RUST_TOOLCHAIN_VERSION}" >> $GITHUB_ENV
echo "version=$RUST_TOOLCHAIN_VERSION" >> $GITHUB_OUTPUT
VERSION="${BUILD_VERSION}-${RUST_TOOLCHAIN_VERSION}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "version=VERSION" >> $GITHUB_OUTPUT
- name: Build and push dev builder images
uses: ./.github/actions/build-dev-builder-images
Expand Down

0 comments on commit 18c9255

Please sign in to comment.