mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-22 05:58:21 -05:00
ci: fix contributors list autogeneration by appropriate permissions
This commit is contained in:
parent
6ef6b32325
commit
aeb2510de8
45
.github/workflows/contributors.yml
vendored
45
.github/workflows/contributors.yml
vendored
@ -1,16 +1,47 @@
|
|||||||
name: Contributors
|
name: Contributors List
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * *' # At 01:00 on every day.
|
- cron: "0 1 * * *"
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- rolling
|
|
||||||
jobs:
|
jobs:
|
||||||
contributors:
|
contributors:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: wow-actions/contributors-list@v1
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: ${{ github.event.repository.default_branch }}
|
||||||
|
|
||||||
|
- name: Update contributors list
|
||||||
|
uses: wow-actions/contributors-list@b9e91f91a51a55460fdcae64daad0cb8122cdd53 # v1.1.0
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
svgPath: images/contributors_list.svg
|
||||||
round: true
|
round: true
|
||||||
svgPath: ../../images/contributors_list.svg
|
includeBots: false
|
||||||
|
noCommit: true
|
||||||
|
|
||||||
|
- name: Commit & PR
|
||||||
|
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
add-paths: .github/assets/CONTRIBUTORS.svg
|
||||||
|
commit-message: 'chore: update contributors-list'
|
||||||
|
committer: GitHub <noreply@github.com>
|
||||||
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||||
|
signoff: false
|
||||||
|
branch: workflow/update-contributors-list
|
||||||
|
base: main
|
||||||
|
delete-branch: true
|
||||||
|
title: 'chore: update contributors-list'
|
||||||
|
body: |
|
||||||
|
Automated update to `images/contributors_list.svg`
|
||||||
|
Loading…
Reference in New Issue
Block a user