This repository was archived by the owner on Dec 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-33
lines changed
Expand file tree Collapse file tree 4 files changed +25
-33
lines changed Original file line number Diff line number Diff line change 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
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)
Load Diff This file was deleted.
Original file line number Diff line number Diff 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
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
Original file line number Diff line number Diff line change 1+ * @ retiman
You can’t perform that action at this time.
0 commit comments