From c830f35ee4afac4c2b6dbe0a31326a0982659e38 Mon Sep 17 00:00:00 2001 From: Ari Date: Sun, 15 May 2022 16:45:08 -0400 Subject: [PATCH] correct version --- .github/workflows/deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9783783..30f0b26 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,6 +15,10 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v3 + + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)-g$(echo ${{ github.sha }} | cut -c1-5 ) - name: Login to DockerHub uses: docker/login-action@v2.0.0 @@ -22,10 +26,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: ${{ matrix.arch }} + - name: ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }} uses: home-assistant/builder@2022.03.1 with: args: | + --version ${{ steps.get_version.outputs.VERSION }} \ --${{ matrix.arch }} \ --target . \ No newline at end of file