Skip to content

Organization Contributors #2189

Organization Contributors

Organization Contributors #2189

name: Organization Contributors
on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'
jobs:
contributors:
permissions:
contents: write
runs-on: ubuntu-latest
name: Update contributors
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get contributors
uses: razonyang/github-org-contributors-action@main
id: contributors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
org: 'hugomods'
output: 'common/data/contributors.toml'
- name: Commit contributors
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update contributors"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
file_pattern: 'common/data/contributors.toml'