diff --git a/.github/workflows/sandbox_build.yml b/.github/workflows/sandbox_build.yml index a43159f..ac60e8e 100644 --- a/.github/workflows/sandbox_build.yml +++ b/.github/workflows/sandbox_build.yml @@ -11,6 +11,7 @@ jobs: steps: - name: Check out uses: actions/checkout@v2 + run: git fetch -t - name: Set up JDK 11 uses: actions/setup-java@v2 @@ -22,11 +23,11 @@ jobs: id: get_version run: | echo ::set-output name=VERSION1::${GITHUB_REF/refs\/heads\//} - echo ::set-output name=VERSION2::$(git describe --tags) + echo ::set-output name=VERSION2::$(git describe --tags --abbrev=0) - name: Test run: | - git describe --tags + git describe --tags --abbrev=0 echo $GITHUB_RUN_ID echo $GITHUB_RUN_NUMBER echo ${{ steps.get_version.outputs.VERSION1 }}