Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cxjava committed Apr 20, 2020
1 parent 43acf07 commit 739e6d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 739e6d1

Please sign in to comment.