Skip to content

Commit

Permalink
chore(ci): Update deprecated actions (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinlim authored Feb 10, 2025
1 parent d115ffe commit e432f51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
outputs:
go-version: ${{ steps.read-go-version.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- id: read-go-version
name: Determine Go version from go.mod
run: echo "::set-output name=version::$(grep "go 1." go.mod | cut -d " " -f 2)"
run: echo "version=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_OUTPUT

golangci-lint:
runs-on: ubuntu-latest
needs:
- get-go-version
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
Expand All @@ -42,7 +42,7 @@ jobs:
- get-go-version
# NOTE(irvinlim): Need to operate in GOPATH in order for generate-groups.sh to succeed (see Makefile).
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: "go/src/github.com/${{ github.repository }}"
- uses: actions/setup-go@v3
Expand All @@ -62,7 +62,7 @@ jobs:
needs:
- get-go-version
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
Expand All @@ -77,7 +77,7 @@ jobs:
needs:
- get-go-version
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v2
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# TODO(irvinlim): Use docker manifest to support multi-arch nightly images.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Determine Go version from go.mod
Expand All @@ -32,7 +32,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Determine Go version from go.mod
Expand All @@ -38,7 +38,7 @@ jobs:
linux/amd64
linux/arm
linux/arm64
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -55,7 +55,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit e432f51

Please sign in to comment.