From 4bf8d795596a270bbb96e774edd34a6ffa232581 Mon Sep 17 00:00:00 2001 From: Patrick Pacher Date: Tue, 19 Jan 2021 13:59:11 +0100 Subject: [PATCH] Fix order of gh-action steps --- .github/workflows/go.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 67f69ed1..180f49d7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,21 +29,6 @@ jobs: echo "::set-output name=branch_head::${GITHUB_HEAD_REF#refs/heads/}" id: getref - - 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 }}" - # nektos/act does not have sudo install but we need it on GH actions so # try to install it. - name: Install sudo @@ -64,6 +49,21 @@ 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