Skip to content

Commit e66295d

Browse files
committed
chore: update GitHub Actions workflows
- Change the cron expression from `'30 1 * * 0'` to `"30 1 * * 0"` in `.github/workflows/codeql.yaml` - Change the `go-version` value from `'1'` to `"^1"` in `.github/workflows/go.yml` - Change the `go-version` value from `'1.17'` to `"1.18"` in `.github/workflows/go.yml` - Change the `go-version` value from `'1.17'` to `"1.18"` in `.github/workflows/goreleaser.yml` - Change the `uses` value from `actions/checkout@v3` to `actions/checkout@v4` in `.github/workflows/codeql.yaml` - Change the `uses` value from `actions/checkout@v3` to `actions/checkout@v4` in `.github/workflows/go.yml` - Change the `uses` value from `actions/checkout@v3` to `actions/checkout@v4` in `.github/workflows/goreleaser.yml` Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent dcbcb6a commit e66295d

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

.github/workflows/codeql.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ name: "CodeQL"
77

88
on:
99
push:
10-
branches: [ master ]
10+
branches: [master]
1111
pull_request:
1212
# The branches below must be a subset of the branches above
13-
branches: [ master ]
13+
branches: [master]
1414
schedule:
15-
- cron: '30 1 * * 0'
15+
- cron: "30 1 * * 0"
1616

1717
jobs:
1818
analyze:
@@ -33,11 +33,11 @@ jobs:
3333
# Override automatic language detection by changing the below list
3434
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
3535
# TODO: Enable for javascript later
36-
language: [ 'go']
36+
language: ["go"]
3737

3838
steps:
3939
- name: Checkout repository
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141

4242
# Initializes the CodeQL tools for scanning.
4343
- name: Initialize CodeQL

.github/workflows/go.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
- name: Setup go
2525
uses: actions/setup-go@v4
2626
with:
27-
go-version: '^1'
27+
go-version: "^1"
2828
- name: Checkout repository
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
- name: Setup golangci-lint
3131
uses: golangci/golangci-lint-action@v3
3232
with:
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
matrix:
3838
os: [ubuntu-latest, macos-latest]
39-
go: [1.17, 1.18, 1.19, '1.20']
39+
go: [1.18, 1.19, "1.20", 1.21]
4040
include:
4141
- os: ubuntu-latest
4242
go-build: ~/.cache/go-build
@@ -52,7 +52,7 @@ jobs:
5252
go-version: ${{ matrix.go }}
5353

5454
- name: Checkout Code
55-
uses: actions/checkout@v3
55+
uses: actions/checkout@v4
5656
with:
5757
ref: ${{ github.ref }}
5858

.github/workflows/goreleaser.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Goreleaser
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
permissions:
99
actions: read
@@ -18,19 +18,16 @@ jobs:
1818
goreleaser:
1919
runs-on: ubuntu-latest
2020
steps:
21-
-
22-
name: Checkout
23-
uses: actions/checkout@v3
21+
- name: Checkout
22+
uses: actions/checkout@v4
2423
with:
2524
fetch-depth: 0
26-
-
27-
name: Set up Go
25+
- name: Set up Go
2826
uses: actions/setup-go@v4
2927
with:
30-
go-version: 1.17
31-
-
32-
name: Run GoReleaser
33-
uses: goreleaser/goreleaser-action@v4
28+
go-version: 1.18
29+
- name: Run GoReleaser
30+
uses: goreleaser/goreleaser-action@v5
3431
with:
3532
# either 'goreleaser' (default) or 'goreleaser-pro'
3633
distribution: goreleaser

0 commit comments

Comments
 (0)