Merge pull request #2 from essentialkaos/develop

Fixed GoDoc workflow
main
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ 3 years ago committed by GitHub
commit 50a19cf429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -3,7 +3,6 @@
<p align="center">
<a href="https://kaos.sh/g/go-badge.v1"><img src="https://gh.kaos.st/godoc.svg" alt="PkgGoDev" /></a>
<a href="https://kaos.sh/w/go-badge/ci"><img src="https://kaos.sh/w/go-badge/ci.svg" alt="GitHub Actions CI Status" /></a>
<a href="https://kaos.sh/r/go-badge"><img src="https://kaos.sh/r/go-badge.svg" alt="GoReportCard" /></a>
<a href="https://kaos.sh/c/go-badge"><img src="https://kaos.sh/c/go-badge.svg" alt="Coverage Status" /></a>
<a href="https://kaos.sh/b/go-badge"><img src="https://kaos.sh/b/0cbded00-9dfb-458b-bdf8-27b2c70ede9b.svg" alt="Codebeat badge" /></a>
<a href="https://kaos.sh/w/go-badge/codeql"><img src="https://kaos.sh/w/go-badge/codeql.svg" alt="GitHub Actions CodeQL Status" /></a>

Loading…
Cancel
Save