Skip to content

Commit e0643d9

Browse files
authored
chore: update github action workflows (#52)
Signed-off-by: Rui Chen <[email protected]>
1 parent 09b4349 commit e0643d9

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/ci-triage.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Triage PRs"
2+
23
on:
3-
- pull_request_target
4+
pull_request_target:
45

56
jobs:
67
triage:
@@ -9,6 +10,6 @@ jobs:
910
pull-requests: write
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
13+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1314
with:
1415
configuration-path: .github/labeler.yaml

.github/workflows/ci.yaml

+8-6
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ on:
1010

1111
jobs:
1212
ci:
13-
runs-on: ubuntu-24.04
13+
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
16+
- name: Checkout
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1818

19-
- name: Set up Go
20-
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
19+
- name: Setup Go
20+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
21+
with:
22+
go-version-file: go.mod
2123

2224
- name: Run tests
2325
run: go test ./...
2426

2527
- name: Run linters
26-
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837
28+
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6
2729
with:
2830
version: latest
2931

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17-
with:
18-
fetch-depth: 0
17+
1918
- name: Setup Go
2019
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
2120
with:
2221
go-version-file: go.mod
22+
2323
- name: Release
2424
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6
2525
with:

0 commit comments

Comments
 (0)