neon_arch commited on
Commit
aeb2510
1 Parent(s): 6ef6b32

ci: fix contributors list autogeneration by appropriate permissions

Browse files
Files changed (1) hide show
  1. .github/workflows/contributors.yml +38 -7
.github/workflows/contributors.yml CHANGED
@@ -1,16 +1,47 @@
1
- name: Contributors
 
2
  on:
 
 
3
  schedule:
4
- - cron: '0 1 * * *' # At 01:00 on every day.
5
- push:
6
- branches:
7
- - rolling
8
  jobs:
9
  contributors:
 
 
 
 
10
  runs-on: ubuntu-latest
 
11
  steps:
12
- - uses: wow-actions/contributors-list@v1
 
 
 
 
 
 
 
13
  with:
14
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
15
  round: true
16
- svgPath: ../../images/contributors_list.svg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Contributors List
2
+
3
  on:
4
+ workflow_dispatch:
5
+
6
  schedule:
7
+ - cron: "0 1 * * *"
8
+
 
 
9
  jobs:
10
  contributors:
11
+ permissions:
12
+ contents: write
13
+ pull-requests: write
14
+
15
  runs-on: ubuntu-latest
16
+
17
  steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
20
+ with:
21
+ fetch-depth: 0
22
+ ref: ${{ github.event.repository.default_branch }}
23
+
24
+ - name: Update contributors list
25
+ uses: wow-actions/contributors-list@b9e91f91a51a55460fdcae64daad0cb8122cdd53 # v1.1.0
26
  with:
27
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
+ svgPath: images/contributors_list.svg
29
  round: true
30
+ includeBots: false
31
+ noCommit: true
32
+
33
+ - name: Commit & PR
34
+ uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
35
+ with:
36
+ token: ${{ secrets.GITHUB_TOKEN }}
37
+ add-paths: .github/assets/CONTRIBUTORS.svg
38
+ commit-message: 'chore: update contributors-list'
39
+ committer: GitHub <noreply@github.com>
40
+ author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
41
+ signoff: false
42
+ branch: workflow/update-contributors-list
43
+ base: main
44
+ delete-branch: true
45
+ title: 'chore: update contributors-list'
46
+ body: |
47
+ Automated update to `images/contributors_list.svg`