55 - published
66
77jobs :
8- update-docs-and-assets :
8+ update-docs :
9+ name : " Update readme"
10+ continue-on-error : true
911 runs-on : ubuntu-latest
1012 env :
1113 GITHUB_TOKEN : ${{ secrets.GOLANGCI_LINT_TOKEN }}
@@ -19,26 +21,53 @@ jobs:
1921 # - 1.18beta1 -> 1.18.0-beta.1
2022 # - 1.18rc1 -> 1.18.0-rc.1
2123 go-version : ' 1.22'
22-
23- - name : Update GitHub action config
24- run : make assets/github-action-config.json
25-
2624 - uses : actions/setup-node@v4
2725 with :
2826 node-version : " 15"
2927 check-latest : true
28+
3029 - name : npm install
3130 working-directory : .github/contributors
3231 run : npm install
32+
3333 - name : Update Contributors list
34- run : make update_contributors_list # may take 15 min
34+ run : make update_contributors_list # may take more than 1 hour
35+
36+ - name : Create Pull Request
37+ uses : peter-evans/create-pull-request@v6
38+ with :
39+ base : master
40+ token : ${{ secrets.GOLANGCI_LINT_TOKEN }}
41+ branch-suffix : timestamp
42+ title : " docs: update documentation"
43+ team-reviewers : golangci/team
44+ delete-branch : true
45+
46+ update-assets :
47+ name : " Update GitHub Action assets"
48+ runs-on : ubuntu-latest
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GOLANGCI_LINT_TOKEN }}
51+ steps :
52+ - uses : actions/checkout@v4
53+ - name : Install Go
54+ uses : actions/setup-go@v5
55+ with :
56+ # https://github.com/actions/setup-go#supported-version-syntax
57+ # ex:
58+ # - 1.18beta1 -> 1.18.0-beta.1
59+ # - 1.18rc1 -> 1.18.0-rc.1
60+ go-version : ' 1.22'
61+
62+ - name : Update GitHub action config
63+ run : make assets/github-action-config.json
3564
3665 - name : Create Pull Request
3766 uses : peter-evans/create-pull-request@v6
3867 with :
3968 base : master
4069 token : ${{ secrets.GOLANGCI_LINT_TOKEN }}
4170 branch-suffix : timestamp
42- title : " docs: Update documentation and assets"
71+ title : " docs: update GitHub Action assets"
4372 team-reviewers : golangci/team
4473 delete-branch : true
0 commit comments