From 03bb78518ec64ef29a61d1bd77b530a24b618826 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 27 Dec 2020 18:29:36 -0600 Subject: [PATCH] Change version to use commit hash --- .github/workflows/deb-build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deb-build.yml b/.github/workflows/deb-build.yml index d7453be..43ad44b 100644 --- a/.github/workflows/deb-build.yml +++ b/.github/workflows/deb-build.yml @@ -12,16 +12,15 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Test + - name: Get commit hash run: | - echo $RELEASE_VERSION - echo ${{ env.RELEASE_VERSION }} + echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - name: Build .deb uses: jiro4989/build-deb-action@v2 with: package: nekofetch package_root: debpkg maintainer: propr and bbaovanc - version: ${{ github.ref }} + version: 0.2-${{ steps.vars.outputs.sha_short }} arch: 'amd64' desc: 'neofetch with nekos'