Skip to content

Commit 088f41e

Browse files
authored
Merge pull request #95 from zqzten/ci
CI: Upgrade actions to latest version
2 parents d24b7ea + 50f43c6 commit 088f41e

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Get changed files
1515
id: changed-files
16-
uses: tj-actions/changed-files@v39
16+
uses: tj-actions/changed-files@v45
1717
with:
1818
files_yaml: |
1919
go:
2020
- '**/*.go'
2121
- name: Set up Go
2222
if: steps.changed-files.outputs.go_any_changed == 'true'
23-
uses: actions/setup-go@v4
23+
uses: actions/setup-go@v5
2424
with:
2525
go-version: "1.19"
2626
cache: false
2727
- name: Run golangci-lint
2828
if: steps.changed-files.outputs.go_any_changed == 'true'
29-
uses: golangci/golangci-lint-action@v3
29+
uses: golangci/golangci-lint-action@v6
3030
with:
3131
version: latest
3232
only-new-issues: true
@@ -37,12 +37,12 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout code
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343
- name: Get changed files
4444
id: changed-files
45-
uses: tj-actions/changed-files@v39
45+
uses: tj-actions/changed-files@v45
4646
with:
4747
files_yaml: |
4848
go:
@@ -60,7 +60,7 @@ jobs:
6060
run: git rebase origin/main
6161
- name: Set up Go
6262
if: steps.changed-files.outputs.go_any_modified == 'true'
63-
uses: actions/setup-go@v4
63+
uses: actions/setup-go@v5
6464
with:
6565
go-version: "1.19"
6666
- name: Run unit tests

.github/workflows/release-algorithm.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: Get tag
1919
run: echo "tag=$(git describe --tags --match 'algorithm-v*' | sed -e 's/^algorithm-//')" >> $GITHUB_ENV
2020
- name: Set up QEMU
21-
uses: docker/setup-qemu-action@v2
21+
uses: docker/setup-qemu-action@v3
2222
- name: Set up Docker Buildx
23-
uses: docker/setup-buildx-action@v2
23+
uses: docker/setup-buildx-action@v3
2424
- name: Login to GitHub Container Registry
25-
uses: docker/login-action@v2
25+
uses: docker/login-action@v3
2626
with:
2727
registry: ghcr.io
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030
- name: Build and push image
31-
uses: docker/build-push-action@v4
31+
uses: docker/build-push-action@v6
3232
with:
3333
context: ./algorithm
3434
file: ./algorithm/horizontal-predictive.Dockerfile

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: Get tag
1919
run: echo "tag=$(git describe --tags --match 'v*')" >> $GITHUB_ENV
2020
- name: Set up QEMU
21-
uses: docker/setup-qemu-action@v2
21+
uses: docker/setup-qemu-action@v3
2222
- name: Set up Docker Buildx
23-
uses: docker/setup-buildx-action@v2
23+
uses: docker/setup-buildx-action@v3
2424
- name: Login to GitHub Container Registry
25-
uses: docker/login-action@v2
25+
uses: docker/login-action@v3
2626
with:
2727
registry: ghcr.io
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030
- name: Build and push image
31-
uses: docker/build-push-action@v4
31+
uses: docker/build-push-action@v6
3232
with:
3333
context: .
3434
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)