Update actions (#4466)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2021-11-12 07:12:36 -08:00 committed by GitHub
parent 3efdd2dce3
commit 8b3619dde7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 22 deletions

View File

@ -61,7 +61,7 @@ jobs:
echo '::endgroup::'
echo '::group:: Installing boilerplate-check ... https://github.com/mattmoor/boilerplate-check'
go get github.com/mattmoor/boilerplate-check/cmd/boilerplate-check
go install github.com/mattmoor/boilerplate-check/cmd/boilerplate-check@latest
echo '::endgroup::'
echo "${TEMP_PATH}" >> $GITHUB_PATH

View File

@ -66,7 +66,7 @@ jobs:
go-version: 1.17.x
- name: Install Dependencies
run: GO111MODULE=on go get knative.dev/test-infra/buoy@main
run: go install knative.dev/test-infra/buoy@main
- name: Check out code
uses: actions/checkout@v2

View File

@ -44,7 +44,7 @@ jobs:
go-version: 1.17.x
- name: Install Dependencies
run: GO111MODULE=on go get k8s.io/release/cmd/release-notes
run: go install k8s.io/release/cmd/release-notes@latest
- name: Check out code
uses: actions/checkout@v2

View File

@ -37,7 +37,7 @@ jobs:
- tool: gofmt
options: -s
- tool: goimports
importpath: golang.org/x/tools/cmd/goimports
package: golang.org/x/tools/cmd/goimports@latest
steps:
- name: Set up Go
@ -50,10 +50,10 @@ jobs:
uses: actions/checkout@v2
- name: Install Dependencies
if: ${{ matrix.importpath != '' }}
if: ${{ matrix.package != '' }}
run: |
cd $(mktemp -d)
GO111MODULE=on go get ${{ matrix.importpath }}
go install ${{ matrix.package }}
- name: ${{ matrix.tool }} ${{ matrix.options }}
shell: bash
@ -106,7 +106,7 @@ jobs:
if: steps.golangci_configuration.outputs.files_exists == 'true'
uses: golangci/golangci-lint-action@v2
with:
version: v1.42
version: v1.43
- name: Install Tools
env:

View File

@ -32,11 +32,7 @@ jobs:
runs-on: ${{ matrix.platform }}
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
@ -45,22 +41,16 @@ jobs:
- name: Install Dependencies
run: |
curl -L https://github.com/google/ko/releases/download/v0.6.0/ko_0.6.0_Linux_x86_64.tar.gz | tar xzf - ko
chmod +x ./ko
sudo mv ko /usr/local/bin
go get github.com/google/go-licenses
go install github.com/google/ko@latest
go install github.com/google/go-licenses@latest
- name: Check out code onto GOPATH
- name: Check out code
uses: actions/checkout@v2
with:
path: ./src/knative.dev/${{ github.event.repository.name }}
- name: Update Codegen
shell: bash
run: |
pushd ./src/knative.dev/${{ github.event.repository.name }}
[[ ! -f hack/update-codegen.sh ]] || ./hack/update-codegen.sh
popd
- name: Verify
shell: bash
@ -72,7 +62,6 @@ jobs:
sed ':begin;$!N;s/\n/%0A/;tbegin'
}
pushd ./src/knative.dev/${{ github.event.repository.name }}
if [[ -z "$(git status --porcelain)" ]]; then
echo "${{ github.repository }} up to date."
else
@ -85,4 +74,3 @@ jobs:
echo "${{ github.repository }} is out of date. Please run hack/update-codegen.sh"
exit 1
fi
popd