Skip to content

Commit 2c7e005

Browse files
author
Peng Zhefu
committed
upgrade actions and core
1 parent 2a108ad commit 2c7e005

File tree

9 files changed

+31
-33
lines changed

9 files changed

+31
-33
lines changed

.github/workflows/binary.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: "Setup go"
13-
uses: actions/setup-go@v4
14-
1512
- name: checkout
16-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1714
with:
1815
fetch-depth: 0
1916

17+
- name: "Setup go"
18+
uses: actions/setup-go@v4
19+
2020
- name: "Build binary"
2121
run: |
2222
make binary

.github/workflows/dockerimage.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19-
- uses: docker/setup-qemu-action@v2
20-
- uses: docker/setup-buildx-action@v2
19+
- uses: docker/setup-qemu-action@v3
20+
- uses: docker/setup-buildx-action@v3
2121

2222
- name: Log in to the ghcr
23-
uses: docker/login-action@v2
23+
uses: docker/login-action@v3
2424
with:
2525
registry: ghcr.io
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Log in to the docker
30-
uses: docker/login-action@v2
30+
uses: docker/login-action@v3
3131
with:
3232
username: ${{ secrets.DOCKER_USERNAME }}
3333
password: ${{ secrets.DOCKER_PASSWORD }}
3434

3535
- name: Docker meta
3636
id: meta
37-
uses: docker/metadata-action@v3
37+
uses: docker/metadata-action@v5
3838
with:
3939
images: |
4040
ghcr.io/${{ github.repository }}
@@ -45,7 +45,7 @@ jobs:
4545
- name: Docker meta for debug version
4646
if: ${{ github.ref == 'refs/heads/master' }}
4747
id: debug-meta
48-
uses: docker/metadata-action@v3
48+
uses: docker/metadata-action@v5
4949
with:
5050
images: |
5151
ghcr.io/${{ github.repository }}
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Build and push image
5757
if: ${{ steps.meta.outputs.tags != '' }}
58-
uses: docker/build-push-action@v3
58+
uses: docker/build-push-action@v5
5959
with:
6060
context: "."
6161
platforms: linux/amd64,linux/arm64
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: "[debug version] Build and push image"
6666
if: ${{ github.ref == 'refs/heads/master' }}
67-
uses: docker/build-push-action@v3
67+
uses: docker/build-push-action@v5
6868
with:
6969
context: "."
7070
platforms: linux/amd64,linux/arm64

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Set up Go
19-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v4
2020
with:
2121
go-version-file: 'go.mod'
2222

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

@@ -19,14 +19,14 @@ jobs:
1919
echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV
2020
2121
- name: Set up Go
22-
uses: actions/setup-go@v3
22+
uses: actions/setup-go@v4
2323
with:
2424
go-version-file: 'go.mod'
2525

2626
- name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v2
27+
uses: goreleaser/goreleaser-action@v5
2828
with:
2929
version: latest
30-
args: release --rm-dist
30+
args: release --clean
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ on:
1111
jobs:
1212
unittests:
1313
runs-on: ubuntu-latest
14-
1514
steps:
16-
- uses: actions/checkout@v3
17-
18-
- uses: actions/setup-go@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v4
1917
with:
2018
go-version-file: 'go.mod'
21-
2219
- name: unit tests
2320
run: make test

.goreleaser.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ builds:
2121
- amd64
2222

2323
archives:
24-
- replacements:
25-
darwin: Darwin
26-
linux: Linux
27-
windows: Windows
28-
386: i386
29-
amd64: x86_64
24+
- id: cli
25+
name_template: >-
26+
{{- .ProjectName }}_{{- .Version }}_
27+
{{- title .Os }}_
28+
{{- if eq .Arch "amd64" }}x86_64
29+
{{- else if eq .Arch "386" }}i386
30+
{{- else }}{{ .Arch }}{{ end }}
31+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
3032
3133
checksum:
3234
name_template: 'checksums.txt'

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ CLI
22
=====
33
![](https://github.com/projecteru2/cli/workflows/goreleaser/badge.svg)
44
![](https://github.com/projecteru2/cli/workflows/golangci-lint/badge.svg)
5-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e9a4c445afb549fea950b4353197e859)](https://www.codacy.com/gh/projecteru2/cli?utm_source=github.com&utm_medium=referral&utm_content=projecteru2/cli&utm_campaign=Badge_Grade)
65

76
CLI for Eru.
87

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/jedib0t/go-pretty/v6 v6.4.6
1111
github.com/juju/errors v1.0.0
1212
github.com/pkg/term v1.1.0
13-
github.com/projecteru2/core v0.0.0-20231010184432-b89f6dbbdd1c
13+
github.com/projecteru2/core v0.0.0-20231011045726-f834c8786ef0
1414
github.com/sethgrid/curse v0.0.0-20181231162520-d4ee583ebf0f
1515
github.com/sethvargo/go-signalcontext v0.2.1
1616
github.com/sirupsen/logrus v1.9.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk=
265265
github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
266266
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
267267
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
268-
github.com/projecteru2/core v0.0.0-20231010184432-b89f6dbbdd1c h1:t1aE9WeRcKrxyAQkzbZtacChr5cbEZ2yGAUxLkuTLiQ=
269-
github.com/projecteru2/core v0.0.0-20231010184432-b89f6dbbdd1c/go.mod h1:fxKSjK6GhlCiV+e1eBtnJpAB7RqM021ZKIB0iZeYOXo=
268+
github.com/projecteru2/core v0.0.0-20231011045726-f834c8786ef0 h1:+DdklqQduXehUGnJUiiFrjyDDuQnODEyvSGYSbAtIdc=
269+
github.com/projecteru2/core v0.0.0-20231011045726-f834c8786ef0/go.mod h1:fxKSjK6GhlCiV+e1eBtnJpAB7RqM021ZKIB0iZeYOXo=
270270
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
271271
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
272272
github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g=

0 commit comments

Comments
 (0)