From 6a05459fd62c0e9366bb59cdbbe0d0b595066b11 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 12 Aug 2021 02:33:54 +0300 Subject: [PATCH] Fix godoc workflow --- .github/workflows/godoc.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/godoc.yml b/.github/workflows/godoc.yml index 5bfe174..1279bf6 100644 --- a/.github/workflows/godoc.yml +++ b/.github/workflows/godoc.yml @@ -14,15 +14,17 @@ jobs: steps: - name: Send request to GoSum DB - if: ${{ github.ref == refs/tags/* }} run: | - full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/') - major_ver=$(echo ${full_ver} | cut -f1 -d'.') - curl -s -m 15 ${{env.GO_SUM}}/pkg.re/${{github.repository}}.${major_ver}@${full_ver}+incompatible + if [[ $GITHUB_REF == refs/tags/* ]] ; then + full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/') + major_ver=$(echo ${full_ver} | cut -f1 -d'.') + curl -s -m 15 ${{env.GO_SUM}}/pkg.re/${{github.repository}}.${major_ver}@${full_ver}+incompatible + fi - name: Send request to PkgGoDev - if: ${{ github.ref == refs/tags/* }} run: | - full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/') - major_ver=$(echo ${full_ver} | cut -f1 -d'.') - curl -s -m 5 -X POST ${{env.GO_PKG}}/pkg.re/${{github.repository}}.${major_ver}@${full_ver}+incompatible || exit 0 + if [[ $GITHUB_REF == refs/tags/* ]] ; then + full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/') + major_ver=$(echo ${full_ver} | cut -f1 -d'.') + curl -s -m 5 -X POST ${{env.GO_PKG}}/pkg.re/${{github.repository}}.${major_ver}@${full_ver}+incompatible || exit 0 + fi