Skip to content

Commit

Permalink
update actions to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
shankerwangmiao committed Apr 18, 2023
1 parent b372744 commit 68a3149
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
steps:

- name: Set up Go 1.16
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: 1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build
run: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tunasync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
steps:

- name: Set up Go 1.16
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: 1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get dependencies
run: |
Expand Down Expand Up @@ -51,13 +51,13 @@ jobs:
docker pull alpine:3.8
- name: Set up Go 1.16
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: 1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Run Unit tests.
run: |
Expand Down Expand Up @@ -89,19 +89,19 @@ jobs:
run_test_reexec 5 tunasync-exec2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
if: github.event_name == 'push'
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
if: github.event_name == 'pull_request'
with:
path: /tmp/.buildx-cache
Expand All @@ -120,7 +120,7 @@ jobs:
mkdir -p /tmp/.buildx-cache
- name: Build Docker image for uml rootfs
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .umlrootfs
file: .umlrootfs/Dockerfile
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
outfile: coverage.lcov

- name: Coveralls
uses: coverallsapp/github-action@v1.0.1
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov

0 comments on commit 68a3149

Please sign in to comment.