chore: update actions (#1966)

Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
Jim Ma 2023-01-03 14:43:41 +08:00 committed by Gaius
parent 068dc8a799
commit 9020455834
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
2 changed files with 7 additions and 3 deletions

View File

@ -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: |

View File

@ -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