Skip to content

Commit

Permalink
fix git tag fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Oct 14, 2021
1 parent 4ad6998 commit 7b33d19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/force-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ env:
jobs:
build-and-release:
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Fetch git tag
run: echo "GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down Expand Up @@ -51,7 +51,8 @@ jobs:

publish-docs:
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') != true
# skip publishing docs for releases that we consider beta builds, aka v0.0.0-0.19.0
if: contains(env.GIT_TAG, '-') != true
needs: build-and-release
steps:
- name: Checkout
Expand Down

0 comments on commit 7b33d19

Please sign in to comment.