From 7f45811630686d3ca74ad886831aaf4cf3b21371 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 17 Feb 2022 10:50:19 +0100 Subject: [PATCH] Update go workflow --- .github/workflows/go.yml | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 32ac0cf3f..1b14cf429 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,13 +22,6 @@ jobs: with: go-version: '^1.15' - - name: Get the current branch name - shell: bash - run: | - echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" - echo "::set-output name=branch_head::${GITHUB_HEAD_REF#refs/heads/}" - id: getref - # nektos/act does not have sudo install but we need it on GH actions so # try to install it. - name: Install sudo @@ -49,21 +42,6 @@ jobs: args: -c ./.golangci.yml skip-go-installation: true - - name: Maybe update development dependencies - shell: bash - run: | - 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/spn@develop - else - echo "::debug::not updating development dependencies; master branch" - fi - env: - BRANCHES: "${{ steps.getref.outputs.branch }} ${{ steps.getref.outputs.branch_head }}" - - name: Get dependencies run: go mod download @@ -92,21 +70,6 @@ jobs: with: go-version: '^1.15' - - name: Update development dependencies - shell: bash - run: | - 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/spn@develop - else - echo "::debug::not updating development dependencies; master branch" - fi - env: - BRANCHES: "${{ steps.getref.outputs.branch }} ${{ steps.getref.outputs.branch_head }}" - # nektos/act does not have sudo install but we need it on GH actions so # try to install it. - name: Install sudo