Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 9421c6a

Browse files
committed
Updated
1 parent 9f6708f commit 9421c6a

File tree

4 files changed

+25
-33
lines changed

4 files changed

+25
-33
lines changed

.github/workflows/build-and-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,18 @@ jobs:
2121
# - macos-latest
2222
runs-on: ubuntu-latest
2323
steps:
24+
- name: Generate token
25+
id: generate-token
26+
uses: actions/create-github-app-token@v1
27+
with:
28+
app-id: ${{ vars.APP_ID }}
29+
private-key: ${{ secrets.APP_KEY }}
30+
2431
- name: Checkout
2532
uses: actions/checkout@v4
33+
with:
34+
ref: ${{ github.head_ref }}
35+
token: ${{ steps.generate-token.outputs.token }}
2636

2737
- name: Setup Go
2838
uses: actions/setup-go@v5
@@ -40,7 +50,17 @@ jobs:
4050
- name: Build
4151
run: make build
4252

53+
- name: Commit
54+
if: ${{ github.ref != 'refs/heads/main' }}
55+
id: commit
56+
uses: EndBug/add-and-commit@v9
57+
with:
58+
author_name: github-actions[bot]
59+
author_email: github-actions[bot]@github.com
60+
message: Automatic commit via GitHub Actions
61+
4362
- name: Test
63+
if: ${{ steps.commit.outputs.committed == 'false' }}
4464
run: make test
4565

4666
- name: Run (Linux and MacOS)

.github/workflows/format-code.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Setup Go
20-
uses: actions/setup-go@v3
20+
uses: actions/setup-go@v5
2121
with:
2222
go-version: 1.23.4
2323
check-latest: true
@@ -33,9 +33,9 @@ jobs:
3333
run: go mod tidy
3434

3535
- name: Lint
36-
uses: golangci/golangci-lint-action@v3
36+
uses: golangci/golangci-lint-action@v6
3737
with:
38-
version: v1.53.3
38+
version: v1.6
3939

4040
- name: Build
4141
run: make build

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @retiman

0 commit comments

Comments
 (0)