Skip to content

Commit 8ecd299

Browse files
authored
Merge pull request #509 from rojkov/github-actions
ci: get rid of deprecated commands in github actions
2 parents 5184b44 + 808cfcd commit 8ecd299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
sudo apt-get update
2525
sudo apt-get -y install libusb-1.0-0-dev
2626
- name: golangci-lint
27-
uses: golangci/golangci-lint-action@v1
27+
uses: golangci/golangci-lint-action@v2
2828
with:
2929
version: v1.30
3030
args: --timeout 5m
@@ -40,8 +40,8 @@ jobs:
4040
- name: Set up environment
4141
shell: bash
4242
run: |
43-
echo "::add-path::$(go env GOPATH)/bin"
44-
echo "::set-env name=MOD_PATH::$(go env GOPATH)/pkg/mod"
43+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
44+
echo "MOD_PATH=$(go env GOPATH)/pkg/mod" >> $GITHUB_ENV
4545
- uses: actions/cache@v1
4646
with:
4747
path: ${{ env.MOD_PATH }}

0 commit comments

Comments
 (0)