diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index 6e73989b2..7595ba4eb 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -29,7 +29,7 @@ jobs: - name: create spec run: | - sudo make spec-install + make spec-install make spec - name: upload spec diff --git a/Makefile b/Makefile index c597ea922..850acc461 100644 --- a/Makefile +++ b/Makefile @@ -279,8 +279,8 @@ spec-install: $(if $(shell command -v apt-get 2> /dev/null),,$(error 'apt-get' not found - install jq, sponge, and go-swagger manually)) @echo @echo "### Installing utilities (jq and sponge)" - @apt-get update - @apt-get install -y jq moreutils + @sudo apt-get update + @sudo apt-get install -y jq moreutils @echo "### Installing go-swagger" @go install github.com/go-swagger/go-swagger/cmd/swagger@latest