Merge pull request #8 from essentialkaos/develop

Improve GitHub Actions workflows
main
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ 3 years ago committed by GitHub
commit c624d075ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,27 +4,10 @@ on:
create create
jobs: jobs:
GoSumDB: GoDoc:
name: Trigger GoSum/PkgGoDev name: Generate docs
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
GO_SUM: https://sum.golang.org/lookup
GO_PKG: https://pkg.go.dev/fetch
steps: steps:
- name: Send request to GoSum DB - name: Trigger GoSumDB and PkgGoDev
run: | uses: essentialkaos/pkgre-godoc-action@v1
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
run: |
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

Loading…
Cancel
Save