From 739e6d1fd8fedcef7909a169b293d371f3cd9ea2 Mon Sep 17 00:00:00 2001 From: Char Date: Mon, 20 Apr 2020 11:05:15 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15ef45a..1a8548f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,9 +23,10 @@ jobs: if: github.event.repository.owner.id == github.event.sender.id steps: - name: Check out code - uses: actions/checkout@master + uses: actions/checkout@v2 - name: Check git tag exist run: | + git fetch --depth=1 origin +refs/tags/*:refs/tags/* gitTagExists=$(git tag --points-at HEAD) if ! [ -n "$gitTagExists" ]; then echo "no tag, create one."