From 695f972ccd6b42a758ccc4d5b635050c901a5f2a Mon Sep 17 00:00:00 2001 From: SallyLueNoa Date: Sun, 11 Jul 2021 23:44:41 +0900 Subject: [PATCH] Publish packages via GitHub Actions #14 --- .github/workflows/sandbox_build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }}