From 55ae76e2fda2db9605bb3957949709ef72945477 Mon Sep 17 00:00:00 2001 From: Christopher Santana Date: Fri, 7 Aug 2020 11:27:06 +0200 Subject: [PATCH] Remove 'refs/tags/' from github tag. --- .github/workflows/publish-packages.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 1cf3422..0a87636 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -19,7 +19,6 @@ jobs: java-version: 1.11 - name: Publish packages - run: gradle -Pversion="$VERSION_TAG" publish + run: gradle -Pversion="$(echo $GITHUB_REF | sed 's/refs\/tags\///g')" publish env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VERSION_TAG: ${{ github.REF }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file