Disable GOPROXY and GOSUMDB for develop branches
This commit is contained in:
7
.github/workflows/go.yml
vendored
7
.github/workflows/go.yml
vendored
@@ -34,6 +34,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [[ $BRANCHES != *"master"* ]]; then
|
if [[ $BRANCHES != *"master"* ]]; then
|
||||||
echo "::debug::updating development dependencies"
|
echo "::debug::updating development dependencies"
|
||||||
|
export GOPROXY=direct
|
||||||
|
export GOSUMDB=off
|
||||||
go get -u -v github.com/safing/portbase@develop
|
go get -u -v github.com/safing/portbase@develop
|
||||||
go get -u -v github.com/safing/spn@develop
|
go get -u -v github.com/safing/spn@develop
|
||||||
else
|
else
|
||||||
@@ -92,8 +94,13 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ $BRANCHES != *"master"* ]]; then
|
if [[ $BRANCHES != *"master"* ]]; then
|
||||||
|
echo "::debug::updating development dependencies"
|
||||||
|
export GOPROXY=direct
|
||||||
|
export GOSUMDB=off
|
||||||
go get -u -v github.com/safing/portbase@develop
|
go get -u -v github.com/safing/portbase@develop
|
||||||
go get -u -v github.com/safing/spn@develop
|
go get -u -v github.com/safing/spn@develop
|
||||||
|
else
|
||||||
|
echo "::debug::not updating development dependencies; master branch"
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
BRANCHES: "${{ steps.getref.outputs.branch }} ${{ steps.getref.outputs.branch_head }}"
|
BRANCHES: "${{ steps.getref.outputs.branch }} ${{ steps.getref.outputs.branch_head }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user