From 3a7f539fd5ca4cdcdd7b26fdaf6605bb72b26cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 5 Aug 2021 12:29:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Fix=20version=20sent=20to=20cust?= =?UTF-8?q?opizer=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80b403981..ae1f20280 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -183,10 +183,14 @@ jobs: needs: publish-on-pypi runs-on: ubuntu-latest steps: + - name: 👀 Determine version + run: | + OCTOPRINT_VERSION=$(echo $GITHUB_REF | cut -d/ -f3) + echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.REPODISPATCH_TOKEN }} repository: OctoPrint/OctoPi-UpToDate event-type: octoprint_release - client-payload: '{"version": "${{ github.ref }}"}' + client-payload: '{"version": "${{ env.OCTOPRINT_VERSION }}"}'