chore: update actions (#1966)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
parent
068dc8a799
commit
9020455834
|
|
@ -35,13 +35,13 @@ jobs:
|
||||||
if [[ ${GITHUB_REF} == "refs/heads/main" ]]; then
|
if [[ ${GITHUB_REF} == "refs/heads/main" ]]; then
|
||||||
VERSION=latest
|
VERSION=latest
|
||||||
fi
|
fi
|
||||||
echo ::set-output name=VERSION::${VERSION}
|
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get Git Revision
|
- name: Get Git Revision
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=git_revision::$(git rev-parse --short HEAD)"
|
echo "git_revision=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: PrepareReg Names
|
- name: PrepareReg Names
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.19
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Golangci lint
|
- name: Golangci lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
version: v1.50.1
|
version: v1.50.1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue