|
|
@ -14,15 +14,17 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Send request to GoSum DB
|
|
|
|
- name: Send request to GoSum DB
|
|
|
|
if: ${{ github.ref == refs/tags/* }}
|
|
|
|
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/')
|
|
|
|
if [[ $GITHUB_REF == refs/tags/* ]] ; then
|
|
|
|
major_ver=$(echo ${full_ver} | cut -f1 -d'.')
|
|
|
|
full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/')
|
|
|
|
curl -s -m 15 ${{env.GO_SUM}}/pkg.re/${{github.repository}}.${major_ver}@${full_ver}+incompatible
|
|
|
|
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
|
|
|
|
- name: Send request to PkgGoDev
|
|
|
|
if: ${{ github.ref == refs/tags/* }}
|
|
|
|
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/')
|
|
|
|
if [[ $GITHUB_REF == refs/tags/* ]] ; then
|
|
|
|
major_ver=$(echo ${full_ver} | cut -f1 -d'.')
|
|
|
|
full_ver=$(echo ${GITHUB_REF} | cut -f3 -d'/')
|
|
|
|
curl -s -m 5 -X POST ${{env.GO_PKG}}/pkg.re/${{github.repository}}.${major_ver}@${full_ver}+incompatible || exit 0
|
|
|
|
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
|
|
|
|